com.nimbusds.openid.connect.sdk.util
Interface JOSEObjectDecoder
- All Known Implementing Classes:
- DefaultJOSEObjectDecoder
public interface JOSEObjectDecoder
Decoder of Javascript Object Signing and Encryption (JOSE) objects. Handles
plaintext, JWS and JWE secured objects. If the object is secured performs
Java Web Signature (JWS) validation and/or Java Web Encryption (JWE)
decryption.
- Version:
- $version$ (2012-10-17)
- Author:
- Vladimir Dzhuvinov
Method Summary |
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. |
decodeJOSEObject
com.nimbusds.jose.Payload decodeJOSEObject(com.nimbusds.jose.JOSEObject joseObject)
throws com.nimbusds.jose.JOSEException
- Decodes a JOSE object by applying JWS signature validation and/or JWE
decryption if the object is secured.
- Parameters:
joseObject
- The JOSE object. Must not be null
.
- Returns:
- The decoded JOSE object payload.
- Throws:
com.nimbusds.jose.JOSEException
- If decoding, signature validation and/or JWE
decryption of the JOSE object failed.
Copyright © 2013 NimbusDS. All Rights Reserved.