Package alpine.model
Class ApiKey
java.lang.Object
alpine.model.ApiKey
- All Implemented Interfaces:
Serializable,Principal
Persistable object representing an ApiKey.
- Since:
- 1.0.0
- Author:
- Steve Springett
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlonggetId()getKey()Masks all key characters except the prefix and last four characters with *.getName()Deprecated.getTeams()voidsetComment(String comment) voidsetCreated(Date created) voidsetId(long id) voidvoidsetLastUsed(Date lastUsed) void
-
Constructor Details
-
ApiKey
public ApiKey()
-
-
Method Details
-
getId
public long getId() -
setId
public void setId(long id) -
getKey
-
setKey
-
getMaskedKey
Masks all key characters except the prefix and last four characters with *. If the key does not have the currently configured prefix, do not return it.- Returns:
- Masked key.
-
getName
Deprecated.Do not use - only here to satisfy Principal implementation requirement. -
getComment
-
setComment
-
getCreated
-
setCreated
-
getLastUsed
-
setLastUsed
-
getTeams
-
setTeams
-
UserPrincipal.getUsername()