public class CryptoKeysHandler extends BaseHandler
VALID| Constructor and Description |
|---|
CryptoKeysHandler() |
| Modifier and Type | Method and Description |
|---|---|
int |
create(User loggedInUser,
java.lang.String description,
java.lang.String type,
java.lang.String content)
Creates a new key with the given parameters.
|
int |
delete(User loggedInUser,
java.lang.String description)
Deletes the key identified by the given parameters.
|
CryptoKey |
getDetails(User loggedInUser,
java.lang.String description)
Returns all of the data associated with the given key.
|
java.util.List |
listAllKeys(User loggedInUser)
Lists all keys associated with the org of the user (identified by the session key).
|
int |
update(User loggedInUser,
java.lang.String description,
java.lang.String type,
java.lang.String content)
Updates type and content of the key identified by the description
|
ensureConfigAdmin, ensureOrgAdmin, ensureOrgOrConfigAdmin, ensureSatAdmin, ensureSystemGroupAdmin, ensureUserRole, getLoggedInUser, invoke, providesAuthentication, setEntityAttribute, validateClientCertificate, validateEntitlements, validateMap, verifyOrgExistspublic java.util.List listAllKeys(User loggedInUser)
loggedInUser - The current userpublic int create(User loggedInUser, java.lang.String description, java.lang.String type, java.lang.String content)
loggedInUser - The current userdescription - description of the keytype - type of key being createdcontent - contents of the key itselfKickstartKeyAlreadyExistsException - if a key with the given description
already exists for the user's orgpublic int delete(User loggedInUser, java.lang.String description)
loggedInUser - The current userdescription - description of the keyKickstartKeyDeleteException - if there is an error during the deletepublic int update(User loggedInUser, java.lang.String description, java.lang.String type, java.lang.String content)
loggedInUser - The current userdescription - description of the key used for identificationtype - type of key being createdcontent - contents of the key itselfKickstartKeyDeleteException - if there is an error during the delete