Class PersistentAccessToken
java.lang.Object
org.craftercms.studio.model.security.AccessToken
org.craftercms.studio.model.security.PersistentAccessToken
Extension of
AccessToken
that holds additional metadata- Since:
- 3.2
- Author:
- joseross
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Instant
The date of creation of the access tokenprotected boolean
Indicates if the access token is enabledprotected long
The id of the access tokenprotected String
The label of the access tokenFields inherited from class org.craftercms.studio.model.security.AccessToken
expiresAt, token
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlong
getId()
getLabel()
boolean
void
setCreatedOn
(Instant createdOn) void
setEnabled
(boolean enabled) void
setId
(long id) void
Methods inherited from class org.craftercms.studio.model.security.AccessToken
getExpiresAt, getToken, setExpiresAt, setToken
-
Field Details
-
id
protected long idThe id of the access token -
label
The label of the access token -
enabled
protected boolean enabledIndicates if the access token is enabled -
createdOn
The date of creation of the access token
-
-
Constructor Details
-
PersistentAccessToken
public PersistentAccessToken()
-
-
Method Details
-
getId
public long getId() -
setId
public void setId(long id) -
getLabel
-
setLabel
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean enabled) -
getCreatedOn
-
setCreatedOn
-