Class AwsCognitoSrpAuthenticator
- java.lang.Object
-
- dev.aherscu.qa.testing.extra.rest.AwsCognitoSrpAuthenticator
-
public class AwsCognitoSrpAuthenticator extends Object
Secure Remote Password (SRP) implementation for AWS Cognito.- See Also:
- source on github
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AwsCognitoSrpAuthenticator.Algorithm
Algorithms to be used for getting secret keys and generating HMAC.static class
AwsCognitoSrpAuthenticator.AwsCognitoSrpAuthenticatorBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.amazonaws.services.cognitoidp.model.RespondToAuthChallengeResult
authChallengeResult(String userName, String password)
Method to orchestrate the SRP Authenticationcom.amazonaws.services.cognitoidp.model.RespondToAuthChallengeResult
authChallengeResultWithoutCaching(String userName, String password)
static AwsCognitoSrpAuthenticator.AwsCognitoSrpAuthenticatorBuilder
builder()
protected boolean
canEqual(Object other)
protected com.amazonaws.services.cognitoidp.AWSCognitoIdentityProvider
cognitoIdentityProvider()
Override to configure an AWS Cognito Identity provider.boolean
equals(Object o)
int
hashCode()
static void
main(String[] args)
Without parameters, prints a help message.String
toString()
-
-
-
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 requestpassword
- 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
-
builder
public static AwsCognitoSrpAuthenticator.AwsCognitoSrpAuthenticatorBuilder builder()
-
canEqual
protected boolean canEqual(Object other)
-
-