public class DeleteCryptoKeyCommand extends BaseCryptoKeyCommand
key| Constructor and Description |
|---|
DeleteCryptoKeyCommand(User currentUser,
java.lang.Long keyId)
Create new Command and Key
|
DeleteCryptoKeyCommand(User currentUser,
java.lang.String description)
Creates a new delete command, loading the key by the given description
and user's org.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setContents(java.lang.String contentsIn)
Set the contents of the key itself.
|
void |
setDescription(java.lang.String descIn)
Set the Description on the key
|
void |
setType(java.lang.String typeIn)
Set the type of the key
|
ValidatorError[] |
store()
remove the key from the DB.
|
getCryptoKey, getTypepublic DeleteCryptoKeyCommand(User currentUser, java.lang.Long keyId)
currentUser - who wants to create the keykeyId - of key to lookup.public DeleteCryptoKeyCommand(User currentUser, java.lang.String description)
currentUser - used to identify the org under which the key is;
cannot be nulldescription - used to identify the key; cannot be nullpublic void setDescription(java.lang.String descIn)
setDescription in class BaseCryptoKeyCommanddescIn - to setpublic void setType(java.lang.String typeIn)
setType in class BaseCryptoKeyCommandtypeIn - label to set.public void setContents(java.lang.String contentsIn)
setContents in class BaseCryptoKeyCommandcontentsIn - to setpublic ValidatorError[] store()
store in class BaseCryptoKeyCommand