public class JwsJsonConsumer extends Object
| Constructor and Description |
|---|
JwsJsonConsumer(String jwsSignedDocument) |
JwsJsonConsumer(String jwsSignedDocument,
String detachedPayload) |
| Modifier and Type | Method and Description |
|---|---|
String |
getDecodedJwsPayload() |
byte[] |
getDecodedJwsPayloadBytes() |
String |
getJwsPayload() |
List<JwsJsonSignatureEntry> |
getSignatureEntries() |
Map<SignatureAlgorithm,List<JwsJsonSignatureEntry>> |
getSignatureEntryMap() |
protected JwsJsonSignatureEntry |
getSignatureObject(Map<String,Object> signatureEntry) |
String |
getSignedDocument() |
JwsJsonProducer |
toProducer() |
List<JwsJsonSignatureEntry> |
verifyAndGetNonValidated(List<JwsSignatureVerifier> validators) |
boolean |
verifySignatureWith(byte[] key,
SignatureAlgorithm algo) |
boolean |
verifySignatureWith(JsonWebKey key) |
boolean |
verifySignatureWith(JsonWebKey key,
SignatureAlgorithm algo) |
boolean |
verifySignatureWith(JwsSignatureVerifier validator) |
boolean |
verifySignatureWith(List<JwsSignatureVerifier> validators) |
boolean |
verifySignatureWith(PublicKey key,
SignatureAlgorithm 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 getJwsPayload()
public String getDecodedJwsPayload()
public byte[] getDecodedJwsPayloadBytes()
public List<JwsJsonSignatureEntry> getSignatureEntries()
public Map<SignatureAlgorithm,List<JwsJsonSignatureEntry>> getSignatureEntryMap()
public boolean verifySignatureWith(JwsSignatureVerifier validator)
public boolean verifySignatureWith(PublicKey key, SignatureAlgorithm algo)
public boolean verifySignatureWith(byte[] key,
SignatureAlgorithm algo)
public boolean verifySignatureWith(List<JwsSignatureVerifier> validators)
public List<JwsJsonSignatureEntry> verifyAndGetNonValidated(List<JwsSignatureVerifier> validators)
public boolean verifySignatureWith(JsonWebKey key)
public boolean verifySignatureWith(JsonWebKey key, SignatureAlgorithm algo)
public JwsJsonProducer toProducer()
Apache CXF