Class JWTSecretKeyAuthenticator

    • Constructor Detail

      • JWTSecretKeyAuthenticator

        public JWTSecretKeyAuthenticator​(java.util.Map<java.lang.String,​java.lang.String> mapClaimsToCheck,
                                         java.lang.String strJWTHttpHeader,
                                         long lValidityPeriod,
                                         java.lang.String strEncryptionAlgorythmName,
                                         java.lang.String strSecretKey)
        Constructor
        Parameters:
        mapClaimsToCheck - The map of claims key/values to check in the JWT
        strJWTHttpHeader - The name of the header which contains the JWT
        lValidityPeriod - The validity period
        strEncryptionAlgorythmName - The name of the algorithm. Values are HS256, HS384, HS512
        strSecretKey - The secret key
    • Method Detail

      • getSecurityInformations

        public AuthenticateRequestInformations getSecurityInformations​(java.util.List<java.lang.String> elements)
        return Security informations to put in the request headers and request parameters
        Parameters:
        elements - List of elements to include in the signature
        Returns:
        AuthenticateRequestInformations