Class JwsCompactConsumer
- java.lang.Object
-
- org.apache.cxf.rs.security.jose.jws.JwsCompactConsumer
-
- Direct Known Subclasses:
JwsJwtCompactConsumer
public class JwsCompactConsumer extends Object
-
-
Constructor Summary
Constructors Constructor Description JwsCompactConsumer(String encodedJws)JwsCompactConsumer(String encodedJws, String detachedPayload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDecodedJsonHeaders()StringgetDecodedJwsPayload()byte[]getDecodedJwsPayloadBytes()byte[]getDecodedSignature()StringgetEncodedSignature()JwsHeadersgetJwsHeaders()protected JsonMapObjectReaderWritergetReader()StringgetUnsignedEncodedSequence()booleanvalidateCriticalHeaders()booleanverifySignatureWith(byte[] key, SignatureAlgorithm algo)booleanverifySignatureWith(X509Certificate cert, SignatureAlgorithm algo)booleanverifySignatureWith(PublicKey key, SignatureAlgorithm algo)booleanverifySignatureWith(JsonWebKey key)booleanverifySignatureWith(JsonWebKey key, SignatureAlgorithm algo)booleanverifySignatureWith(JwsSignatureVerifier validator)
-
-
-
Field Detail
-
LOG
protected static final Logger LOG
-
-
Method Detail
-
getUnsignedEncodedSequence
public String getUnsignedEncodedSequence()
-
getEncodedSignature
public String getEncodedSignature()
-
getDecodedJsonHeaders
public String getDecodedJsonHeaders()
-
getDecodedJwsPayload
public String getDecodedJwsPayload()
-
getDecodedJwsPayloadBytes
public byte[] getDecodedJwsPayloadBytes()
-
getDecodedSignature
public byte[] getDecodedSignature()
-
getJwsHeaders
public JwsHeaders getJwsHeaders()
-
verifySignatureWith
public boolean verifySignatureWith(JwsSignatureVerifier validator)
-
verifySignatureWith
public boolean verifySignatureWith(JsonWebKey key)
-
verifySignatureWith
public boolean verifySignatureWith(JsonWebKey key, SignatureAlgorithm algo)
-
verifySignatureWith
public boolean verifySignatureWith(X509Certificate cert, SignatureAlgorithm algo)
-
verifySignatureWith
public boolean verifySignatureWith(PublicKey key, SignatureAlgorithm algo)
-
verifySignatureWith
public boolean verifySignatureWith(byte[] key, SignatureAlgorithm algo)
-
validateCriticalHeaders
public boolean validateCriticalHeaders()
-
getReader
protected JsonMapObjectReaderWriter getReader()
-
-