Class AbstractJWTAuthenticator

    • Constructor Detail

      • AbstractJWTAuthenticator

        public AbstractJWTAuthenticator​(java.util.Map<java.lang.String,​java.lang.String> mapClaimsToCheck,
                                        java.lang.String strJWTHttpHeader,
                                        long lValidityTimePeriod)
        Constructor
        Parameters:
        mapClaimsToCheck - The map of claims key/values to check in the JWT
        strJWTHttpHeader - The name of the header which contains the JWT
        lValidityTimePeriod - The validity time period
    • Method Detail

      • isRequestAuthenticated

        public boolean isRequestAuthenticated​(javax.servlet.http.HttpServletRequest request)
        Check the Authentication of a request
        Parameters:
        request - The HTTP request
        Returns:
        true if authenticated, otherwise false