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