public class AccessToken extends Object
| Constructor and Description |
|---|
AccessToken() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getApplication()
Returns the name of the application accessing Crafter Profile.
|
Date |
getExpiresOn()
Returns the date of expiration of this token (when it becomes invalid)
|
String |
getId()
Returns the ID of the access token.
|
List<TenantPermission> |
getTenantPermissions()
Returns the tenant permissions the application has.
|
int |
hashCode() |
boolean |
isMaster()
Returns true if this is a master token.
|
void |
setApplication(String application)
Sets the name of the application accessing Crafter Profile.
|
void |
setExpiresOn(Date expiresOn)
Sets the date of expiration of this token (when it becomes invalid)
|
void |
setId(String id)
Sets the ID of the access token.
|
void |
setMaster(boolean master)
Sets if this is a master token.
|
void |
setTenantPermissions(List<TenantPermission> tenantPermissions)
Sets the he tenant permissions the application has.
|
String |
toString() |
public String getId()
public void setId(String id)
id - the token's IDpublic String getApplication()
public void setApplication(String application)
application - the application namepublic boolean isMaster()
public void setMaster(boolean master)
master - trues if this should be a master token, false otherwisepublic List<TenantPermission> getTenantPermissions()
public void setTenantPermissions(List<TenantPermission> tenantPermissions)
tenantPermissions - the tenant permissionspublic Date getExpiresOn()
public void setExpiresOn(Date expiresOn)
expiresOn - the expiration date of the tokenCopyright © 2015 CrafterCMS. All Rights Reserved.