AuthenticationToken Class
- java.
lang. Object - com.
microsoft. store. partnercenter. AuthenticationToken
- com.
public final class AuthenticationToken
Represents an authentication token for a resource.
Constructor Summary
| Constructor | Description |
|---|---|
| AuthenticationToken(String token, DateTime expiryTime) |
Initializes a new instance of the Authentication |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| org.joda.time.Duration | getExpiryBuffer() |
| org.joda.time.DateTime | getExpiryTime() |
| java.lang.String | getToken() |
| boolean |
isExpired()
Indicates whether the token has expired or not. |
| void | setExpiryBuffer(Duration value) |
Inherited Members
Constructor Details
AuthenticationToken
public AuthenticationToken(String token, DateTime expiryTime)
Initializes a new instance of the AuthenticationToken class.
Parameters:
Method Details
getExpiryBuffer
public Duration getExpiryBuffer()
getExpiryTime
public DateTime getExpiryTime()
getToken
public String getToken()
isExpired
public boolean isExpired()
Indicates whether the token has expired or not.
Returns:
setExpiryBuffer
public void setExpiryBuffer(Duration value)
Parameters: