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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getKey()
getLabel()
getName()
long
int
hashCode()
void
setDecodedKey
(String decodedKey) Sets the key and encode itvoid
void
void
setLastUsed
(Date lastUsed) void
void
setUserId
(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:
toString
in classPersistentObject
-
hashCode
public int hashCode()- Overrides:
hashCode
in classPersistentObject
-
equals
- Overrides:
equals
in classPersistentObject
-