Package com.ibm.cloud.sdk.core.security
Class VpcTokenResponse
- java.lang.Object
-
- com.ibm.cloud.sdk.core.security.VpcTokenResponse
-
- All Implemented Interfaces:
TokenServerResponse
public class VpcTokenResponse extends java.lang.Object implements TokenServerResponse
This class models the response received from the VPC "create_access_token" and "create_iam_token" operations.
-
-
Constructor Summary
Constructors Constructor Description VpcTokenResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getAccessToken()
Gets the accessToken.java.util.Date
getCreatedAt()
Gets the createdAt.java.util.Date
getExpiresAt()
Gets the expiresAt.java.lang.Long
getExpiresIn()
Gets the expiresIn.
-
-
-
Method Detail
-
getAccessToken
public java.lang.String getAccessToken()
Gets the accessToken. The access token.- Returns:
- the accessToken
-
getCreatedAt
public java.util.Date getCreatedAt()
Gets the createdAt. The date and time that the access token was created.- Returns:
- the createdAt
-
getExpiresAt
public java.util.Date getExpiresAt()
Gets the expiresAt. The date and time that the access token will expire.- Returns:
- the expiresAt
-
getExpiresIn
public java.lang.Long getExpiresIn()
Gets the expiresIn. Time in seconds before the access token expires.- Returns:
- the expiresIn
-
-