public class HmacJwsSignatureVerifier extends Object implements JwsSignatureVerifier
Constructor and Description |
---|
HmacJwsSignatureVerifier(byte[] key,
AlgorithmParameterSpec spec,
SignatureAlgorithm supportedAlgo) |
HmacJwsSignatureVerifier(byte[] key,
SignatureAlgorithm supportedAlgo) |
HmacJwsSignatureVerifier(String encodedKey) |
HmacJwsSignatureVerifier(String encodedKey,
SignatureAlgorithm supportedAlgo) |
Modifier and Type | Method and Description |
---|---|
protected String |
checkAlgorithm(SignatureAlgorithm sigAlgo) |
JwsVerificationSignature |
createJwsVerificationSignature(JwsHeaders headers)
Create a verification signature handler capable of accumulating the input (optional operation)
|
SignatureAlgorithm |
getAlgorithm() |
boolean |
verify(JwsHeaders headers,
String unsignedText,
byte[] signature) |
protected static final Logger LOG
public HmacJwsSignatureVerifier(String encodedKey)
public HmacJwsSignatureVerifier(String encodedKey, SignatureAlgorithm supportedAlgo)
public HmacJwsSignatureVerifier(byte[] key, SignatureAlgorithm supportedAlgo)
public HmacJwsSignatureVerifier(byte[] key, AlgorithmParameterSpec spec, SignatureAlgorithm supportedAlgo)
public boolean verify(JwsHeaders headers, String unsignedText, byte[] signature)
verify
in interface JwsSignatureVerifier
protected String checkAlgorithm(SignatureAlgorithm sigAlgo)
public SignatureAlgorithm getAlgorithm()
getAlgorithm
in interface JwsSignatureVerifier
public JwsVerificationSignature createJwsVerificationSignature(JwsHeaders headers)
JwsSignatureVerifier
createJwsVerificationSignature
in interface JwsSignatureVerifier
Apache CXF