public interface JOSEProcessor<C extends SecurityContext>
unsecured (plain), JWS and
JWE objects. An optional context
parameter is available to facilitate passing of additional data between the
caller and the underlying JOSE processor (in both directions).| Modifier and Type | Method and Description |
|---|---|
Payload |
process(JOSEObject joseObject,
C context)
Processes the specified JOSE object (unsecured, JWS or JWE).
|
Payload |
process(JWEObject jweObject,
C context)
Processes the specified JWE object by decrypting it.
|
Payload |
process(JWSObject jwsObject,
C context)
Processes the specified JWS object by verifying its signature.
|
Payload |
process(PlainObject plainObject,
C context)
Processes the specified unsecured (plain) JOSE object, typically by
checking its context.
|
Payload |
process(String compactEncodedJOSE,
C context)
Parses and processes the specified JOSE object (unsecured, JWS or
JWE).
|
Payload process(String compactEncodedJOSE, C context) throws ParseException, BadJOSEException, JOSEException
compactEncodedJOSE - The JOSE object, compact-encoded to a
URL-safe string. Must not be null.context - Optional context, null if not
required.ParseException - If the string couldn't be parsed to a valid
JOSE object.BadJOSEException - If the JOSE object is rejected.JOSEException - If an internal processing exception is
encountered.Payload process(JOSEObject joseObject, C context) throws BadJOSEException, JOSEException
joseObject - The JOSE object. Must not be null.context - Optional context, null if not required.BadJOSEException - If the JOSE object is rejected.JOSEException - If an internal processing exception is
encountered.Payload process(PlainObject plainObject, C context) throws BadJOSEException, JOSEException
plainObject - The unsecured (plain) JOSE object. Not
null.context - Optional context, null if not required.BadJOSEException - If the unsecured (plain) JOSE object is
rejected.JOSEException - If an internal processing exception is
encountered.Payload process(JWSObject jwsObject, C context) throws BadJOSEException, JOSEException
jwsObject - The JWS object. Not null.context - Optional context, null if not required.BadJOSEException - If the JWS object is rejected, typically
due to a bad signature.JOSEException - If an internal processing exception is
encountered.Payload process(JWEObject jweObject, C context) throws BadJOSEException, JOSEException
jweObject - The JWE object. Not null.context - Optional context of the JWE object, null if
not required.BadJOSEException - If the JWE object is rejected, typically
due to failed decryption.JOSEException - If an internal processing exception is
encountered.Copyright © 2018 Connect2id Ltd.. All rights reserved.