public interface JWTHandler<T>
JSON Web Tokens
(JWT). Invoked by a
JWTParser
after parsing a JWT to indicate its exact type -
plain
, signed
or
encrypted
.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). |
T onPlainJWT(PlainJWT plainJWT)
JWTParser
determines that the parsed JWT is
plain (unsecured).plainJWT
- The parsed plain JWT. Not null
.null
if no return value is necessary.T onSignedJWT(SignedJWT signedJWT)
JWTParser
determines that the parsed JWT is
signed (JWS).signedJWT
- The parsed signed JWT. Not null
.null
if no return value is necessary.T onEncryptedJWT(EncryptedJWT encryptedJWT)
JWTParser
determines that the parsed JWT is
encrypted (JWE).encryptedJWT
- The parsed encrypted JWT. Not null
.null
if no return value is necessary.Copyright © 2015 Connect2id Ltd.. All Rights Reserved.