Class AwsCognitoSrpAuthenticator


  • public class AwsCognitoSrpAuthenticator
    extends Object
    Secure Remote Password (SRP) implementation for AWS Cognito.
    See Also:
    source on github
    • Method Detail

      • main

        public static void main​(String[] args)
        Without parameters, prints a help message.
        Parameters:
        args - command line arguments as supplied by the system
      • authChallengeResult

        public com.amazonaws.services.cognitoidp.model.RespondToAuthChallengeResult authChallengeResult​(String userName,
                                                                                                        String password)
        Method to orchestrate the SRP Authentication
        Parameters:
        userName - Username for the SRP request
        password - Password for the SRP request
        Returns:
        the JWT token if the request is successful else null.
      • authChallengeResultWithoutCaching

        public com.amazonaws.services.cognitoidp.model.RespondToAuthChallengeResult authChallengeResultWithoutCaching​(String userName,
                                                                                                                      String password)
      • cognitoIdentityProvider

        protected com.amazonaws.services.cognitoidp.AWSCognitoIdentityProvider cognitoIdentityProvider()
        Override to configure an AWS Cognito Identity provider.
        Returns:
        configured AWS Cognito Identity provider
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object