Class ApiKey
java.lang.Object
com.logicaldoc.core.PersistentObject
com.logicaldoc.core.security.apikey.ApiKey
- All Implemented Interfaces:
Serializable
A secret key to use when connecting to the Webservices API
- Since:
- 8.9.4
- Author:
- Marco Meschieri - LogicalDOC
- See Also:
-
Field Summary
Fields inherited from class com.logicaldoc.core.PersistentObject
DELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetKey()getLabel()getName()longinthashCode()voidsetDecodedKey(String decodedKey) Sets the key and encode itvoidvoidvoidsetLastUsed(Date lastUsed) voidvoidsetUserId(long userId) toString()Methods inherited from class com.logicaldoc.core.PersistentObject
getCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
-
Constructor Details
-
ApiKey
public ApiKey() -
ApiKey
-
-
Method Details
-
getUserId
public long getUserId() -
getName
-
getLastUsed
-
getKey
-
setUserId
public void setUserId(long userId) -
setName
-
setLastUsed
-
setKey
-
getDecodedKey
-
setDecodedKey
Sets the key and encode it- Parameters:
decodedKey- The key in readable format- Throws:
NoSuchAlgorithmException- Cripting error
-
getLabel
-
setLabel
-
toString
- Overrides:
toStringin classPersistentObject
-
hashCode
public int hashCode()- Overrides:
hashCodein classPersistentObject
-
equals
- Overrides:
equalsin classPersistentObject
-