public class DatashareApiKey extends Object implements ApiKey
| Constructor and Description |
|---|
DatashareApiKey(SecretKey secretKey,
User user) |
DatashareApiKey(String hashedKey,
User user) |
DatashareApiKey(String hashedKey,
User user,
Date creationDate) |
DatashareApiKey(User user) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static SecretKey |
generateSecretKey() |
static String |
getBase64Encoded(SecretKey secretKey) |
Date |
getCreationDate() |
String |
getId() |
User |
getUser() |
int |
hashCode() |
boolean |
match(String base64Key) |
public static final String ALGORITHM
public DatashareApiKey(User user) throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic static SecretKey generateSecretKey() throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic Date getCreationDate()
getCreationDate in interface ApiKeyCopyright © 2020–2021 ICIJ. All rights reserved.