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 SummaryFields inherited from class com.logicaldoc.core.PersistentObjectDELETED_CODE_DEFAULT, DELETED_CODE_STRONG, id
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.PersistentObjectgetCreation, getDeleted, getId, getLastModified, getRecordVersion, getTenantId, setCreation, setDeleted, setId, setLastModified, setRecordVersion, setTenantId
- 
Constructor Details- 
ApiKeypublic ApiKey()
- 
ApiKey
 
- 
- 
Method Details- 
getUserIdpublic long getUserId()
- 
getName
- 
getLastUsed
- 
getKey
- 
setUserIdpublic void setUserId(long userId) 
- 
setName
- 
setLastUsed
- 
setKey
- 
getDecodedKey
- 
setDecodedKeySets the key and encode it- Parameters:
- decodedKey- The key in readable format
- Throws:
- NoSuchAlgorithmException- Cripting error
 
- 
getLabel
- 
setLabel
- 
toString- Overrides:
- toStringin class- PersistentObject
 
- 
hashCodepublic int hashCode()- Overrides:
- hashCodein class- PersistentObject
 
- 
equals- Overrides:
- equalsin class- PersistentObject
 
 
-