title: Amazon Cognito developer authenticated identity with Java SDK
body: <p>I am trying to authenticate a java app to AWS services using a developer-authenticated Cognito identity.  This is very straightforward in the AWS mobile SDKs (<a href="http://docs.aws.amazon.com/cognito/latest/developerguide/developer-authenticated-identities.html%20/documentation" rel="nofollow">documentation</a>), but I can't seem to find the equivalent classes in the Java SDK.  </p>
  
  <p>The main issue I am having is that the Java SDK classes (such as WebIdentityFederationSessionCredentialsProvider) require the client code to know the arn of the role being assumed.  With the mobile SDK, it uses the role configured for the federated identity.  That's what I'd prefer to do, but it seems the Java SDK doesn't have the supporting classes for that.</p>