public class Credentials
extends java.lang.Object
implements java.io.Serializable
Contains credentials to use for federation.
Constructor and Description |
---|
Credentials() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccessToken()
An access token generated for a federated user to access Amazon Connect.
|
java.util.Date |
getAccessTokenExpiration()
A token generated with an expiration time for the session a user is
logged in to Amazon Connect.
|
java.lang.String |
getRefreshToken()
Renews a token generated for a user to access the Amazon Connect
instance.
|
java.util.Date |
getRefreshTokenExpiration()
Renews the expiration timer for a generated token.
|
int |
hashCode() |
void |
setAccessToken(java.lang.String accessToken)
An access token generated for a federated user to access Amazon Connect.
|
void |
setAccessTokenExpiration(java.util.Date accessTokenExpiration)
A token generated with an expiration time for the session a user is
logged in to Amazon Connect.
|
void |
setRefreshToken(java.lang.String refreshToken)
Renews a token generated for a user to access the Amazon Connect
instance.
|
void |
setRefreshTokenExpiration(java.util.Date refreshTokenExpiration)
Renews the expiration timer for a generated token.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
Credentials |
withAccessToken(java.lang.String accessToken)
An access token generated for a federated user to access Amazon Connect.
|
Credentials |
withAccessTokenExpiration(java.util.Date accessTokenExpiration)
A token generated with an expiration time for the session a user is
logged in to Amazon Connect.
|
Credentials |
withRefreshToken(java.lang.String refreshToken)
Renews a token generated for a user to access the Amazon Connect
instance.
|
Credentials |
withRefreshTokenExpiration(java.util.Date refreshTokenExpiration)
Renews the expiration timer for a generated token.
|
public java.lang.String getAccessToken()
An access token generated for a federated user to access Amazon Connect.
An access token generated for a federated user to access Amazon Connect.
public void setAccessToken(java.lang.String accessToken)
An access token generated for a federated user to access Amazon Connect.
accessToken
- An access token generated for a federated user to access Amazon Connect.
public Credentials withAccessToken(java.lang.String accessToken)
An access token generated for a federated user to access Amazon Connect.
Returns a reference to this object so that method calls can be chained together.
accessToken
- An access token generated for a federated user to access Amazon Connect.
public java.util.Date getAccessTokenExpiration()
A token generated with an expiration time for the session a user is logged in to Amazon Connect.
A token generated with an expiration time for the session a user is logged in to Amazon Connect.
public void setAccessTokenExpiration(java.util.Date accessTokenExpiration)
A token generated with an expiration time for the session a user is logged in to Amazon Connect.
accessTokenExpiration
- A token generated with an expiration time for the session a user is logged in to Amazon Connect.
public Credentials withAccessTokenExpiration(java.util.Date accessTokenExpiration)
A token generated with an expiration time for the session a user is logged in to Amazon Connect.
Returns a reference to this object so that method calls can be chained together.
accessTokenExpiration
- A token generated with an expiration time for the session a user is logged in to Amazon Connect.
public java.lang.String getRefreshToken()
Renews a token generated for a user to access the Amazon Connect instance.
Renews a token generated for a user to access the Amazon Connect instance.
public void setRefreshToken(java.lang.String refreshToken)
Renews a token generated for a user to access the Amazon Connect instance.
refreshToken
- Renews a token generated for a user to access the Amazon Connect instance.
public Credentials withRefreshToken(java.lang.String refreshToken)
Renews a token generated for a user to access the Amazon Connect instance.
Returns a reference to this object so that method calls can be chained together.
refreshToken
- Renews a token generated for a user to access the Amazon Connect instance.
public java.util.Date getRefreshTokenExpiration()
Renews the expiration timer for a generated token.
Renews the expiration timer for a generated token.
public void setRefreshTokenExpiration(java.util.Date refreshTokenExpiration)
Renews the expiration timer for a generated token.
refreshTokenExpiration
- Renews the expiration timer for a generated token.
public Credentials withRefreshTokenExpiration(java.util.Date refreshTokenExpiration)
Renews the expiration timer for a generated token.
Returns a reference to this object so that method calls can be chained together.
refreshTokenExpiration
- Renews the expiration timer for a generated token.
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
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.