org.apache.cxf.rs.security.jose.jws
Class PublicKeyJwsSignatureVerifier
java.lang.Object
org.apache.cxf.rs.security.jose.jws.PublicKeyJwsSignatureVerifier
- All Implemented Interfaces:
- JwsSignatureVerifier
- Direct Known Subclasses:
- EcDsaJwsSignatureVerifier
public class PublicKeyJwsSignatureVerifier
- extends Object
- implements JwsSignatureVerifier
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LOG
protected static final Logger LOG
PublicKeyJwsSignatureVerifier
public PublicKeyJwsSignatureVerifier(PublicKey key,
SignatureAlgorithm supportedAlgorithm)
PublicKeyJwsSignatureVerifier
public PublicKeyJwsSignatureVerifier(PublicKey key,
AlgorithmParameterSpec spec,
SignatureAlgorithm supportedAlgo)
verify
public boolean verify(JwsHeaders headers,
String unsignedText,
byte[] signature)
- Specified by:
verify in interface JwsSignatureVerifier
checkAlgorithm
protected String checkAlgorithm(String algo)
isValidAlgorithmFamily
protected boolean isValidAlgorithmFamily(String algo)
getAlgorithm
public SignatureAlgorithm getAlgorithm()
- Specified by:
getAlgorithm in interface JwsSignatureVerifier
Apache CXF