|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.nimbusds.openid.connect.sdk.util.DefaultJOSEObjectDecoder
@ThreadSafe public class DefaultJOSEObjectDecoder
The default decoder of JOSE objects. This class is thread-safe.
Supports:
Not supported: JWS-signed and then JWE-encrypted (nested) objects.
Constructor Summary | |
---|---|
DefaultJOSEObjectDecoder()
Creates a new decoder of JOSE objects. |
Method Summary | |
---|---|
void |
addJWEDecrypter(com.nimbusds.jose.JWEDecrypter decrypter)
Adds the specified JWE decrypter for decoding encrypted JOSE objects. |
void |
addJWSVerifier(com.nimbusds.jose.JWSVerifier verifier)
Adds the specified JWS verifier for decoding signed JOSE objects. |
com.nimbusds.jose.Payload |
decodeJOSEObject(com.nimbusds.jose.JOSEObject joseObject)
Decodes a JOSE object by applying JWS signature validation and/or JWE decryption if the object is secured. |
Collection<com.nimbusds.jose.JWEDecrypter> |
getJWEDecrypters()
Gets the JWE decrypters. |
Collection<com.nimbusds.jose.JWSVerifier> |
getJWSVerifiers()
Gets the JWS verifiers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultJOSEObjectDecoder()
Method Detail |
---|
public void addJWSVerifier(com.nimbusds.jose.JWSVerifier verifier)
verifier
- The JWS verifier to add. Must be ready to verify
signed JOSE objects and not null
.public Collection<com.nimbusds.jose.JWSVerifier> getJWSVerifiers()
public void addJWEDecrypter(com.nimbusds.jose.JWEDecrypter decrypter)
decrypter
- The JWE decrypter to add. Must be ready to decrypt
encrypted JOSE objects and not null
.public Collection<com.nimbusds.jose.JWEDecrypter> getJWEDecrypters()
public com.nimbusds.jose.Payload decodeJOSEObject(com.nimbusds.jose.JOSEObject joseObject) throws com.nimbusds.jose.JOSEException
JOSEObjectDecoder
decodeJOSEObject
in interface JOSEObjectDecoder
joseObject
- The JOSE object. Must not be null
.
com.nimbusds.jose.JOSEException
- If decoding, signature validation and/or JWE
decryption of the JOSE object failed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |