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(String algo) |
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
public SignatureAlgorithm getAlgorithm()
getAlgorithm
in interface JwsSignatureVerifier
Apache CXF