public abstract class AbstractJwsSignatureProvider extends Object implements JwsSignatureProvider
Modifier | Constructor and Description |
---|---|
protected |
AbstractJwsSignatureProvider(SignatureAlgorithm algo) |
Modifier and Type | Method and Description |
---|---|
protected void |
checkAlgorithm(String algo) |
JwsSignature |
createJwsSignature(JwsHeaders headers)
Create a signature handler capable of updating the signature input (optional operation)
|
protected abstract JwsSignature |
doCreateJwsSignature(JoseHeaders headers) |
SignatureAlgorithm |
getAlgorithm() |
protected abstract boolean |
isValidAlgorithmFamily(String algo) |
protected JwsHeaders |
prepareHeaders(JwsHeaders headers) |
byte[] |
sign(JwsHeaders headers,
byte[] content) |
protected static final Logger LOG
protected AbstractJwsSignatureProvider(SignatureAlgorithm algo)
protected JwsHeaders prepareHeaders(JwsHeaders headers)
public SignatureAlgorithm getAlgorithm()
getAlgorithm
in interface JwsSignatureProvider
public byte[] sign(JwsHeaders headers, byte[] content)
sign
in interface JwsSignatureProvider
public JwsSignature createJwsSignature(JwsHeaders headers)
JwsSignatureProvider
createJwsSignature
in interface JwsSignatureProvider
protected abstract JwsSignature doCreateJwsSignature(JoseHeaders headers)
protected void checkAlgorithm(String algo)
protected abstract boolean isValidAlgorithmFamily(String algo)
Apache CXF