Class MitreJWTParser

  • All Implemented Interfaces:
    JWTParser

    public class MitreJWTParser
    extends java.lang.Object
    implements JWTParser
    MitreJWTParser Some parts of the code come from the MITRE project and especialy from the class : com.plec.artistes.security.CustomOIDCAuthenticationFilter
    • Constructor Summary

      Constructors 
      Constructor Description
      MitreJWTParser()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void parseJWT​(Token token, AuthClientConf clientConfig, AuthServerConf serverConfig, java.lang.String strStoredNonce, org.apache.log4j.Logger logger)
      Extract Json Web Token from the token
      java.lang.String parseJWT​(java.lang.String strJwt, AuthClientConf clientConfig, AuthServerConf serverConfig, org.apache.log4j.Logger logger)
      Extract Claims from the jwt
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MitreJWTParser

        public MitreJWTParser()
    • Method Detail

      • parseJWT

        public void parseJWT​(Token token,
                             AuthClientConf clientConfig,
                             AuthServerConf serverConfig,
                             java.lang.String strStoredNonce,
                             org.apache.log4j.Logger logger)
                      throws TokenValidationException
        Extract Json Web Token from the token
        Specified by:
        parseJWT in interface JWTParser
        Parameters:
        token - The token
        clientConfig - The client configuration
        serverConfig - The server configuration
        strStoredNonce - The stored nonce
        logger - The logger
        Throws:
        TokenValidationException - if an error occurs