Class SNSFactorProvider

java.lang.Object
com.auth0.json.mgmt.guardian.SNSFactorProvider

public class SNSFactorProvider extends Object
Class that represents a Guardian's push-notification Factor Provider for Amazon's Simple Notification Service (SNS). Related to the GuardianEntity entity.
  • Constructor Details

    • SNSFactorProvider

      public SNSFactorProvider(String awsAccessKeyId, String awsSecretAccessKey, String awsRegion, String snsAPNSPlatformApplicationArn, String snsGCMPlatformApplicationArn)
      Creates a SNS settings object
      Parameters:
      awsAccessKeyId - the Amazon Web Services access key id.
      awsSecretAccessKey - the Amazon Web Services secret access key.
      awsRegion - the Amazon Web Services region.
      snsAPNSPlatformApplicationArn - the Apple Push Notification Service platform application Amazon Resource Name.
      snsGCMPlatformApplicationArn - the Google Cloud Messaging platform application Amazon Resource Name.
  • Method Details

    • getAWSAccessKeyId

      public String getAWSAccessKeyId()
      Getter for the Amazon Web Services access key id.
      Returns:
      the AWS access key id.
    • getAWSSecretAccessKey

      public String getAWSSecretAccessKey()
      Getter for the Amazon Web Services secret access key.
      Returns:
      the AWS secret access key.
    • getAWSRegion

      public String getAWSRegion()
      Getter for the Amazon Web Services region.
      Returns:
      the AWS region.
    • getSNSAPNSPlatformApplicationARN

      public String getSNSAPNSPlatformApplicationARN()
      Getter for the Simple Notification Service Apple Push Notification service platform application Amazon Resource Name.
      Returns:
      the SNS APNs ARN.
    • getSNSGCMPlatformApplicationARN

      public String getSNSGCMPlatformApplicationARN()
      Getter for the Simple Notification Service Google Cloud Messaging platform application Amazon Resource Name.
      Returns:
      the SNS GCM ARN.