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, getType
public 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 null
description
- used to identify the key; cannot be null
public void setDescription(java.lang.String descIn)
setDescription
in class BaseCryptoKeyCommand
descIn
- to setpublic void setType(java.lang.String typeIn)
setType
in class BaseCryptoKeyCommand
typeIn
- label to set.public void setContents(java.lang.String contentsIn)
setContents
in class BaseCryptoKeyCommand
contentsIn
- to setpublic ValidatorError[] store()
store
in class BaseCryptoKeyCommand