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