public class JwsJsonConsumer extends Object
Constructor and Description |
---|
JwsJsonConsumer(String jwsSignedDocument) |
JwsJsonConsumer(String jwsSignedDocument,
String encodedDetachedPayload) |
Modifier and Type | Method and Description |
---|---|
String |
getDecodedJwsPayload() |
byte[] |
getDecodedJwsPayloadBytes() |
String |
getEncodedJwsPayload() |
List<JwsJsonSignatureEntry> |
getSignatureEntries() |
javax.ws.rs.core.MultivaluedMap<String,JwsJsonSignatureEntry> |
getSignatureEntryMap() |
protected JwsJsonSignatureEntry |
getSignatureObject(Map<String,Object> signatureEntry) |
String |
getSignedDocument() |
JwsJsonProducer |
toProducer() |
List<JwsJsonSignatureEntry> |
verifyAndGetNonValidated(List<JwsSignatureVerifier> validators) |
boolean |
verifySignatureWith(byte[] key,
String algo) |
boolean |
verifySignatureWith(JsonWebKey key) |
boolean |
verifySignatureWith(JsonWebKey key,
String algo) |
boolean |
verifySignatureWith(JwsSignatureVerifier validator) |
boolean |
verifySignatureWith(List<JwsSignatureVerifier> validators) |
boolean |
verifySignatureWith(PublicKey key,
String algo) |
protected static final Logger LOG
public JwsJsonConsumer(String jwsSignedDocument)
jwsSignedDocument
- signed JWS Documentprotected JwsJsonSignatureEntry getSignatureObject(Map<String,Object> signatureEntry)
public String getSignedDocument()
public String getEncodedJwsPayload()
public String getDecodedJwsPayload()
public byte[] getDecodedJwsPayloadBytes()
public List<JwsJsonSignatureEntry> getSignatureEntries()
public javax.ws.rs.core.MultivaluedMap<String,JwsJsonSignatureEntry> getSignatureEntryMap()
public boolean verifySignatureWith(JwsSignatureVerifier validator)
public boolean verifySignatureWith(byte[] key, String algo)
public boolean verifySignatureWith(List<JwsSignatureVerifier> validators)
public List<JwsJsonSignatureEntry> verifyAndGetNonValidated(List<JwsSignatureVerifier> validators)
public boolean verifySignatureWith(JsonWebKey key)
public boolean verifySignatureWith(JsonWebKey key, String algo)
public JwsJsonProducer toProducer()
Apache CXF