List of usage examples for com.amazonaws.auth AnonymousAWSCredentials AnonymousAWSCredentials
AnonymousAWSCredentials
From source file:edu.iu.finch.core.NexRad.java
License:Apache License
public NexRad() { init(new AnonymousAWSCredentials()); }
From source file:io.fineo.client.auth.AWSAbstractCognitoIdentityProvider.java
License:Open Source License
/** * Sets up an AWSAbstractCognitoIdentityProvider, which will serve as the * baseline for both Cognito and developer trusted identity providers. * Custom providers should not extend this class, but should extend * AWSAbstractCognitoDeveloperIdentityProvider * * @deprecated please use AWSAbstractCognitoIdentityProvider(String * accountId, String identityPoolId, ClientConfiguration * clientConfiguration, Regions region) instead. * @param accountId the accountId of the developer * @param identityPoolId the identityPoolId to be used * @param clientConfiguration the client configuration to be used by the * client//w w w . ja v a 2s .c om */ @Deprecated public AWSAbstractCognitoIdentityProvider(String accountId, String identityPoolId, ClientConfiguration clientConfiguration) { this(accountId, identityPoolId, new AmazonCognitoIdentityClient(new AnonymousAWSCredentials(), clientConfiguration)); }
From source file:io.fineo.client.auth.AWSAbstractCognitoIdentityProvider.java
License:Open Source License
/** * Sets up an AWSAbstractCognitoIdentityProvider, which will serve as the * baseline for both Cognito and developer trusted identity providers. * Custom providers should not extend this class, but should extend * AWSAbstractCognitoDeveloperIdentityProvider * * @param accountId the accountId of the developer * @param identityPoolId the identityPoolId to be used * @param clientConfiguration the client configuration to be used by the * client/*from w w w.ja v a 2s . c o m*/ * @param region the region cognito will use */ public AWSAbstractCognitoIdentityProvider(String accountId, String identityPoolId, ClientConfiguration clientConfiguration, Regions region) { this(accountId, identityPoolId, new AmazonCognitoIdentityClient(new AnonymousAWSCredentials(), clientConfiguration)); this.cib.setRegion(Region.getRegion(region)); }
From source file:io.fineo.client.auth.AWSBasicCognitoIdentityProvider.java
License:Open Source License
/** * An extension of the AbstractCognitoProvider that is used to communicate * with Cognito.// w w w. j av a2 s . c o m * * @param accountId the account id of the developer * @param identityPoolId the identity pool id of the app/user in question * @param clientConfiguration the configuration to apply to service clients * created */ public AWSBasicCognitoIdentityProvider(String accountId, String identityPoolId, ClientConfiguration clientConfiguration) { this(accountId, identityPoolId, new AmazonCognitoIdentityClient(new AnonymousAWSCredentials(), clientConfiguration)); }
From source file:io.fineo.client.auth.AWSEnhancedCognitoIdentityProvider.java
License:Open Source License
/** * An extension of the AbstractCognitoProvider that is used to communicate * with Cognito.// w w w. ja v a 2 s. c o m * * @param accountId the account id of the developer * @param identityPoolId the identity pool id of the app/user in question * @param clientConfiguration the configuration to apply to service clients * created */ public AWSEnhancedCognitoIdentityProvider(String accountId, String identityPoolId, ClientConfiguration clientConfiguration) { this(accountId, identityPoolId, new AmazonCognitoIdentityClient(new AnonymousAWSCredentials(), clientConfiguration)); }
From source file:io.fineo.client.auth.cognito.CognitoUserPool.java
License:Open Source License
/** * Constructs a user-pool with default {@link ClientConfiguration}. * * @param userPoolId REQUIRED: User-pool-Id of the user-pool. * @param clientId REQUIRED: Client-Id generated for this app and user-pool at the * Cognito Identity Provider developer console. * @param clientSecret REQUIRED: Client Secret generated for this app and user-pool at * the Cognito Identity Provider developer console. *//* w ww . j av a 2 s .c om*/ public CognitoUserPool(String userPoolId, String clientId, String clientSecret) { this.userPoolId = userPoolId; this.clientId = clientId; this.clientSecret = clientSecret; this.client = new AWSCognitoIdentityProviderClient(new AnonymousAWSCredentials(), new ClientConfiguration()); }
From source file:io.fineo.client.auth.CognitoCredentialsProvider.java
License:Open Source License
/** * Constructs a new {@link CognitoCredentialsProvider}, which will use the * specified Amazon Cognito identity pool to make a request, using the basic * authentication flow, to the AWS Security Token Service (STS) to request * short-lived session credentials, which will then be returned by this * class's {@link #getCredentials()} method. * <p>/*www .ja va2 s . c om*/ * This version of the constructor allows you to specify a client * configuration for the Amazon Cognito and STS clients. * </p> * * @param accountId The AWS accountId for the account with Amazon Cognito * @param identityPoolId The Amazon Cognito identity pool to use * @param unauthRoleArn The ARN of the IAM Role that will be assumed when * unauthenticated * @param authRoleArn The ARN of the IAM Role that will be assumed when * authenticated * @param region The region to use when contacting Cognito Identity * @param clientConfiguration Configuration to apply to service clients * created */ public CognitoCredentialsProvider(String accountId, String identityPoolId, String unauthRoleArn, String authRoleArn, Regions region, ClientConfiguration clientConfiguration) { this(accountId, identityPoolId, unauthRoleArn, authRoleArn, new AmazonCognitoIdentityClient(new AnonymousAWSCredentials(), clientConfiguration), (unauthRoleArn == null && authRoleArn == null) ? null : new AWSSecurityTokenServiceClient(new AnonymousAWSCredentials(), clientConfiguration)); this.cib.setRegion(Region.getRegion(region)); }
From source file:io.fineo.client.auth.CognitoCredentialsProvider.java
License:Open Source License
/** * Constructs a new CognitoCredentialsProvider, which will set up a link to * the provider passed in using the basic authentication flow to get get * short-lived credentials from STS, which can be retrieved from * {@link #getCredentials()}/*from www . java 2 s . co m*/ * <p> * This version of the constructor allows you to specify your own Identity * Provider class. * </p> * * @param provider a reference to the provider in question, including what's * needed to interact with it to later connect with STS * @param unauthArn the unauthArn, for use with the STS call * @param authArn the authArn, for use with the STS call */ public CognitoCredentialsProvider(AWSCognitoIdentityProvider provider, String unauthArn, String authArn) { this(provider, unauthArn, authArn, new AWSSecurityTokenServiceClient(new AnonymousAWSCredentials(), new ClientConfiguration())); }
From source file:io.fineo.client.auth.CognitoCredentialsProvider.java
License:Open Source License
/** * Constructs a new CognitoCredentialsProvider, which will set up a link to * the provider passed in using the enhanced authentication flow to get * short-lived credentials from Amazon Cognito, which can be retrieved from * {@link #getCredentials()}/*from w ww .java 2s .c o m*/ * <p> * This version of the constructor allows you to specify your own Identity * Provider class and the configuration for the Amazon Cognito client. * </p> * * @param provider a reference to the provider in question, including what's * needed to interact with it to later connect with Amazon * Cognito * @param clientConfiguration Configuration to apply to service clients * created * @param region The region to use when contacting Cognito Identity */ public CognitoCredentialsProvider(AWSCognitoIdentityProvider provider, Regions region, ClientConfiguration clientConfiguration) { this(provider, new AmazonCognitoIdentityClient(new AnonymousAWSCredentials(), clientConfiguration)); this.cib.setRegion(Region.getRegion(region)); }
From source file:org.apache.beam.sdk.io.kinesis.auth.AnonymousAWSCredentialsProvider.java
License:Open Source License
public AWSCredentials getCredentials() { return new AnonymousAWSCredentials(); }