Class JjwtJWTParser
java.lang.Object
fr.paris.lutece.plugins.oauth2.jwt.JjwtJWTParser
- All Implemented Interfaces:
JWTParser
Jjwt JWTParser
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidparseJWT(Token token, AuthClientConf clientConfig, AuthServerConf serverConfig, String strStoredNonce, org.apache.log4j.Logger logger) Extract Json Web Token from the tokenparseJWT(String strJwt, AuthClientConf clientConfig, AuthServerConf serverConfig, org.apache.log4j.Logger logger) Extract Claims from the jwt
-
Constructor Details
-
JjwtJWTParser
public JjwtJWTParser()
-
-
Method Details
-
parseJWT
public void parseJWT(Token token, AuthClientConf clientConfig, AuthServerConf serverConfig, String strStoredNonce, org.apache.log4j.Logger logger) 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 noncelogger- The logger- Throws:
TokenValidationException- if an error occurs
-
parseJWT
public String parseJWT(String strJwt, AuthClientConf clientConfig, AuthServerConf serverConfig, org.apache.log4j.Logger logger) throws TokenValidationException Description copied from interface:JWTParserExtract Claims from the jwt- Specified by:
parseJWTin interfaceJWTParser- Parameters:
strJwt- The jwtclientConfig- The client configurationserverConfig- The server configurationlogger- The logger- Throws:
TokenValidationException- if an error occurs
-