public class JWTHandlerAdapter<T> extends Object implements JWTHandler<T>
| Constructor and Description |
|---|
JWTHandlerAdapter() |
| Modifier and Type | Method and Description |
|---|---|
T |
onEncryptedJWT(EncryptedJWT encryptedJWT)
Invoked when the
JWTParser determines that the parsed JWT is
encrypted (JWE). |
T |
onPlainJWT(PlainJWT plainJWT)
Invoked when the
JWTParser determines that the parsed JWT is
plain (unsecured). |
T |
onSignedJWT(SignedJWT signedJWT)
Invoked when the
JWTParser determines that the parsed JWT is
signed (JWS). |
public JWTHandlerAdapter()
public T onPlainJWT(PlainJWT plainJWT)
JWTHandlerJWTParser determines that the parsed JWT is
plain (unsecured).onPlainJWT in interface JWTHandler<T>plainJWT - The parsed plain JWT. Not null.null if no return value is necessary.public T onSignedJWT(SignedJWT signedJWT)
JWTHandlerJWTParser determines that the parsed JWT is
signed (JWS).onSignedJWT in interface JWTHandler<T>signedJWT - The parsed signed JWT. Not null.null if no return value is necessary.public T onEncryptedJWT(EncryptedJWT encryptedJWT)
JWTHandlerJWTParser determines that the parsed JWT is
encrypted (JWE).onEncryptedJWT in interface JWTHandler<T>encryptedJWT - The parsed encrypted JWT. Not null.null if no return value is necessary.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.