public class JwsCompactConsumer extends Object
Constructor and Description |
---|
JwsCompactConsumer(String encodedJws) |
JwsCompactConsumer(String encodedJws,
String detachedPayload) |
Modifier and Type | Method and Description |
---|---|
String |
getDecodedJsonHeaders() |
String |
getDecodedJwsPayload() |
byte[] |
getDecodedJwsPayloadBytes() |
byte[] |
getDecodedSignature() |
String |
getEncodedSignature() |
JwsHeaders |
getJwsHeaders() |
protected JsonMapObjectReaderWriter |
getReader() |
String |
getUnsignedEncodedSequence() |
boolean |
validateCriticalHeaders() |
boolean |
verifySignatureWith(byte[] key,
SignatureAlgorithm algo) |
boolean |
verifySignatureWith(JsonWebKey key) |
boolean |
verifySignatureWith(JsonWebKey key,
SignatureAlgorithm algo) |
boolean |
verifySignatureWith(JwsSignatureVerifier validator) |
boolean |
verifySignatureWith(PublicKey key,
SignatureAlgorithm algo) |
boolean |
verifySignatureWith(X509Certificate cert,
SignatureAlgorithm algo) |
protected static final Logger LOG
public JwsCompactConsumer(String encodedJws)
public String getUnsignedEncodedSequence()
public String getEncodedSignature()
public String getDecodedJsonHeaders()
public String getDecodedJwsPayload()
public byte[] getDecodedJwsPayloadBytes()
public byte[] getDecodedSignature()
public JwsHeaders getJwsHeaders()
public boolean verifySignatureWith(JwsSignatureVerifier validator)
public boolean verifySignatureWith(JsonWebKey key)
public boolean verifySignatureWith(JsonWebKey key, SignatureAlgorithm algo)
public boolean verifySignatureWith(X509Certificate cert, SignatureAlgorithm algo)
public boolean verifySignatureWith(PublicKey key, SignatureAlgorithm algo)
public boolean verifySignatureWith(byte[] key, SignatureAlgorithm algo)
public boolean validateCriticalHeaders()
protected JsonMapObjectReaderWriter getReader()
Apache CXF