public class AccessToken extends Object
Constructor and Description |
---|
AccessToken(String token,
OffsetDateTime expiresAt)
Creates an access token instance.
|
Modifier and Type | Method and Description |
---|---|
OffsetDateTime |
getExpiresAt() |
String |
getToken() |
boolean |
isExpired() |
public AccessToken(String token, OffsetDateTime expiresAt)
token
- the token string.expiresAt
- the expiration time.public String getToken()
public OffsetDateTime getExpiresAt()
public boolean isExpired()
Copyright © 2019 Microsoft Corporation. All rights reserved.