public interface IStorageKeyUnit extends IEncryptionUnit
Modifier and Type | Method and Description |
---|---|
boolean |
changeAgentMN(int n,
int m,
Credential[] oldcreds,
Credential[] newcreds)
Changes M-N recovery scheme.
|
boolean |
changeAgentPassword(java.lang.String id,
java.lang.String oldpwd,
java.lang.String newpwd)
Changes agent password.
|
java.util.Enumeration |
getAgentIdentifiers()
Retrieves a list of agents in this unit.
|
int |
getNoOfAgents()
Retrieves total number of recovery agents.
|
int |
getNoOfRequiredAgents()
Retrieves number of recovery agents required to
perform recovery operation.
|
org.mozilla.jss.crypto.CryptoToken |
getToken() |
void |
login(Credential[] ac)
Logins to this unit.
|
void |
setNoOfRequiredAgents(int number)
Sets the numer of required recovery agents
|
decryptExternalPrivate, decryptInternalPrivate, encryptInternalPrivate, getPublicKey, unwrap, unwrap, verify, wrap
int getNoOfAgents() throws EBaseException
EBaseException
int getNoOfRequiredAgents() throws EBaseException
EBaseException
void setNoOfRequiredAgents(int number)
number
- number of required agentsjava.util.Enumeration getAgentIdentifiers()
boolean changeAgentPassword(java.lang.String id, java.lang.String oldpwd, java.lang.String newpwd) throws EBaseException
id
- agent idoldpwd
- old passwordnewpwd
- new passwordEBaseException
- failed to change passwordboolean changeAgentMN(int n, int m, Credential[] oldcreds, Credential[] newcreds) throws EBaseException
n
- total number of agentsm
- required number of agents for recovery operationoldcreds
- all old credentialsnewcreds
- all new credentialsEBaseException
- failed to change schemavoid login(Credential[] ac) throws EBaseException
ac
- agent's credentialsEBaseException
- failed to loginorg.mozilla.jss.crypto.CryptoToken getToken()