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 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. -
getTeams
-
setTeams
-
UserPrincipal.getUsername()