public class GetFederationTokenResult
extends java.lang.Object
implements java.io.Serializable
Contains the response to a successful GetFederationToken request, including temporary Amazon Web Services credentials that can be used to make Amazon Web Services requests.
Constructor and Description |
---|
GetFederationTokenResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
Credentials |
getCredentials()
The temporary security credentials, which include an access key ID, a
secret access key, and a security (or session) token.
|
FederatedUser |
getFederatedUser()
Identifiers for the federated user associated with the credentials (such
as
arn:aws:sts::123456789012:federated-user/Bob or
123456789012:Bob ). |
java.lang.Integer |
getPackedPolicySize()
A percentage value that indicates the packed size of the session policies
and session tags combined passed in the request.
|
int |
hashCode() |
void |
setCredentials(Credentials credentials)
The temporary security credentials, which include an access key ID, a
secret access key, and a security (or session) token.
|
void |
setFederatedUser(FederatedUser federatedUser)
Identifiers for the federated user associated with the credentials (such
as
arn:aws:sts::123456789012:federated-user/Bob or
123456789012:Bob ). |
void |
setPackedPolicySize(java.lang.Integer packedPolicySize)
A percentage value that indicates the packed size of the session policies
and session tags combined passed in the request.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetFederationTokenResult |
withCredentials(Credentials credentials)
The temporary security credentials, which include an access key ID, a
secret access key, and a security (or session) token.
|
GetFederationTokenResult |
withFederatedUser(FederatedUser federatedUser)
Identifiers for the federated user associated with the credentials (such
as
arn:aws:sts::123456789012:federated-user/Bob or
123456789012:Bob ). |
GetFederationTokenResult |
withPackedPolicySize(java.lang.Integer packedPolicySize)
A percentage value that indicates the packed size of the session policies
and session tags combined passed in the request.
|
public Credentials getCredentials()
The temporary security credentials, which include an access key ID, a secret access key, and a security (or session) token.
The size of the security token that STS API operations return is not fixed. We strongly recommend that you make no assumptions about the maximum size.
The temporary security credentials, which include an access key ID, a secret access key, and a security (or session) token.
The size of the security token that STS API operations return is not fixed. We strongly recommend that you make no assumptions about the maximum size.
public void setCredentials(Credentials credentials)
The temporary security credentials, which include an access key ID, a secret access key, and a security (or session) token.
The size of the security token that STS API operations return is not fixed. We strongly recommend that you make no assumptions about the maximum size.
credentials
- The temporary security credentials, which include an access key ID, a secret access key, and a security (or session) token.
The size of the security token that STS API operations return is not fixed. We strongly recommend that you make no assumptions about the maximum size.
public GetFederationTokenResult withCredentials(Credentials credentials)
The temporary security credentials, which include an access key ID, a secret access key, and a security (or session) token.
The size of the security token that STS API operations return is not fixed. We strongly recommend that you make no assumptions about the maximum size.
Returns a reference to this object so that method calls can be chained together.
credentials
- The temporary security credentials, which include an access key ID, a secret access key, and a security (or session) token.
The size of the security token that STS API operations return is not fixed. We strongly recommend that you make no assumptions about the maximum size.
public FederatedUser getFederatedUser()
Identifiers for the federated user associated with the credentials (such
as arn:aws:sts::123456789012:federated-user/Bob
or
123456789012:Bob
). You can use the federated user's ARN in
your resource-based policies, such as an Amazon S3 bucket policy.
Identifiers for the federated user associated with the
credentials (such as
arn:aws:sts::123456789012:federated-user/Bob
or
123456789012:Bob
). You can use the federated user's
ARN in your resource-based policies, such as an Amazon S3 bucket
policy.
public void setFederatedUser(FederatedUser federatedUser)
Identifiers for the federated user associated with the credentials (such
as arn:aws:sts::123456789012:federated-user/Bob
or
123456789012:Bob
). You can use the federated user's ARN in
your resource-based policies, such as an Amazon S3 bucket policy.
federatedUser
-
Identifiers for the federated user associated with the
credentials (such as
arn:aws:sts::123456789012:federated-user/Bob
or
123456789012:Bob
). You can use the federated
user's ARN in your resource-based policies, such as an Amazon
S3 bucket policy.
public GetFederationTokenResult withFederatedUser(FederatedUser federatedUser)
Identifiers for the federated user associated with the credentials (such
as arn:aws:sts::123456789012:federated-user/Bob
or
123456789012:Bob
). You can use the federated user's ARN in
your resource-based policies, such as an Amazon S3 bucket policy.
Returns a reference to this object so that method calls can be chained together.
federatedUser
-
Identifiers for the federated user associated with the
credentials (such as
arn:aws:sts::123456789012:federated-user/Bob
or
123456789012:Bob
). You can use the federated
user's ARN in your resource-based policies, such as an Amazon
S3 bucket policy.
public java.lang.Integer getPackedPolicySize()
A percentage value that indicates the packed size of the session policies and session tags combined passed in the request. The request fails if the packed size is greater than 100 percent, which means the policies and tags exceeded the allowed space.
Constraints:
Range: 0 -
A percentage value that indicates the packed size of the session policies and session tags combined passed in the request. The request fails if the packed size is greater than 100 percent, which means the policies and tags exceeded the allowed space.
public void setPackedPolicySize(java.lang.Integer packedPolicySize)
A percentage value that indicates the packed size of the session policies and session tags combined passed in the request. The request fails if the packed size is greater than 100 percent, which means the policies and tags exceeded the allowed space.
Constraints:
Range: 0 -
packedPolicySize
- A percentage value that indicates the packed size of the session policies and session tags combined passed in the request. The request fails if the packed size is greater than 100 percent, which means the policies and tags exceeded the allowed space.
public GetFederationTokenResult withPackedPolicySize(java.lang.Integer packedPolicySize)
A percentage value that indicates the packed size of the session policies and session tags combined passed in the request. The request fails if the packed size is greater than 100 percent, which means the policies and tags exceeded the allowed space.
Returns a reference to this object so that method calls can be chained together.
Constraints:
Range: 0 -
packedPolicySize
- A percentage value that indicates the packed size of the session policies and session tags combined passed in the request. The request fails if the packed size is greater than 100 percent, which means the policies and tags exceeded the allowed space.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object