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 InstantThe date of creation of the access tokenprotected booleanIndicates if the access token is enabledprotected longThe id of the access tokenprotected StringThe label of the access tokenFields inherited from class org.craftercms.studio.model.security.AccessToken
expiresAt, token -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()getLabel()booleanvoidsetCreatedOn(Instant createdOn) voidsetEnabled(boolean enabled) voidsetId(long id) voidMethods 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
-