Class MitreJWTParser
java.lang.Object
fr.paris.lutece.plugins.oauth2.jwt.MitreJWTParser
- All Implemented Interfaces:
JWTParser,Serializable
@ApplicationScoped
@Named("oauth2.mitreJWTParser")
public class MitreJWTParser
extends Object
implements JWTParser, Serializable
MitreJWTParser
Some parts of the code come from the MITRE project and especialy from the class : com.plec.artistes.security.CustomOIDCAuthenticationFilter
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparseJWT(Token token, AuthClientConf clientConfig, AuthServerConf serverConfig, String strStoredNonce) Extract Json Web Token from the tokenparseJWT(String strJwt, AuthClientConf clientConfig, AuthServerConf serverConfig) Extract Claims from the jwt
-
Constructor Details
-
MitreJWTParser
public MitreJWTParser()
-
-
Method Details
-
parseJWT
public void parseJWT(Token token, AuthClientConf clientConfig, AuthServerConf serverConfig, String strStoredNonce) throws TokenValidationException Extract Json Web Token from the token- Specified by:
parseJWTin interfaceJWTParser- Parameters:
token- The tokenclientConfig- The client configurationserverConfig- The server configurationstrStoredNonce- The stored nonce- Throws:
TokenValidationException- if an error occurs
-
parseJWT
public String parseJWT(String strJwt, AuthClientConf clientConfig, AuthServerConf serverConfig) throws TokenValidationException Description copied from interface:JWTParserExtract Claims from the jwt- Specified by:
parseJWTin interfaceJWTParser- Parameters:
strJwt- The jwtclientConfig- The client configurationserverConfig- The server configuration- Throws:
TokenValidationException- if an error occurs
-