public class PublicKeyJwsSignatureVerifier extends Object implements JwsSignatureVerifier
Constructor and Description |
---|
PublicKeyJwsSignatureVerifier(PublicKey key,
AlgorithmParameterSpec spec,
SignatureAlgorithm supportedAlgo) |
PublicKeyJwsSignatureVerifier(PublicKey key,
SignatureAlgorithm supportedAlgorithm) |
PublicKeyJwsSignatureVerifier(X509Certificate cert,
AlgorithmParameterSpec spec,
SignatureAlgorithm supportedAlgo) |
PublicKeyJwsSignatureVerifier(X509Certificate cert,
SignatureAlgorithm supportedAlgorithm) |
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() |
X509Certificate |
getX509Certificate() |
protected boolean |
isValidAlgorithmFamily(String algo) |
boolean |
verify(JwsHeaders headers,
String unsignedText,
byte[] signature) |
protected static final Logger LOG
public PublicKeyJwsSignatureVerifier(PublicKey key, SignatureAlgorithm supportedAlgorithm)
public PublicKeyJwsSignatureVerifier(PublicKey key, AlgorithmParameterSpec spec, SignatureAlgorithm supportedAlgo)
public PublicKeyJwsSignatureVerifier(X509Certificate cert, SignatureAlgorithm supportedAlgorithm)
public PublicKeyJwsSignatureVerifier(X509Certificate cert, AlgorithmParameterSpec spec, SignatureAlgorithm supportedAlgo)
public boolean verify(JwsHeaders headers, String unsignedText, byte[] signature)
verify
in interface JwsSignatureVerifier
protected String checkAlgorithm(SignatureAlgorithm sigAlgo)
protected boolean isValidAlgorithmFamily(String algo)
public SignatureAlgorithm getAlgorithm()
getAlgorithm
in interface JwsSignatureVerifier
public X509Certificate getX509Certificate()
public JwsVerificationSignature createJwsVerificationSignature(JwsHeaders headers)
JwsSignatureVerifier
createJwsVerificationSignature
in interface JwsSignatureVerifier
Apache CXF