@Immutable public static final class JWSObjectJSON.Signature extends Object
| Modifier and Type | Method and Description |
|---|---|
JWSHeader |
getHeader()
Returns the JWS protected header.
|
Base64URL |
getSignature()
Returns the signature.
|
UnprotectedHeader |
getUnprotectedHeader()
Returns the unprotected header.
|
boolean |
isVerified()
Returns
true if the signature was successfully
verified with a previous call to verify(com.nimbusds.jose.JWSVerifier). |
JWSObject |
toJWSObject()
Returns the compact JWS object representation of this
individual signature.
|
boolean |
verify(JWSVerifier verifier)
Checks the signature with the specified verifier.
|
public JWSHeader getHeader()
null if none.public UnprotectedHeader getUnprotectedHeader()
null if none.public Base64URL getSignature()
public JWSObject toJWSObject()
public boolean isVerified()
true if the signature was successfully
verified with a previous call to verify(com.nimbusds.jose.JWSVerifier).true if the signature was successfully
verified, false if the signature is invalid
or verify(com.nimbusds.jose.JWSVerifier) was never called.public boolean verify(JWSVerifier verifier) throws JOSEException
verifier - The JWS verifier. Must not be null.true if the signature was successfully
verified, else false.JOSEException - If the signature verification failed.Copyright © 2021 Connect2id Ltd.. All rights reserved.