public class JOSEObjectHandlerAdapter<T> extends Object implements JOSEObjectHandler<T>
Constructor and Description |
---|
JOSEObjectHandlerAdapter() |
Modifier and Type | Method and Description |
---|---|
T |
onJWEObject(JWEObject jweObject)
Invoked when the parsed JOSE object is a JWE object.
|
T |
onJWSObject(JWSObject jwsObject)
Invoked when the the parsed JOSE object is a JWS object.
|
T |
onPlainObject(PlainObject plainObject)
Invoked when the parsed JOSE object is plain (unsecured).
|
public JOSEObjectHandlerAdapter()
public T onPlainObject(PlainObject plainObject)
JOSEObjectHandler
onPlainObject
in interface JOSEObjectHandler<T>
plainObject
- The parsed plain JOSE object. Not null
.null
if no return value is necessary.public T onJWSObject(JWSObject jwsObject)
JOSEObjectHandler
onJWSObject
in interface JOSEObjectHandler<T>
jwsObject
- The parsed JWS object. Not null
.null
if no return value is necessary.public T onJWEObject(JWEObject jweObject)
JOSEObjectHandler
onJWEObject
in interface JOSEObjectHandler<T>
jweObject
- The parsed JWE object. Not null
.null
if no return value is necessary.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.