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<java.lang.String> |
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, decryptExternalPrivate, decryptInternalPrivate, encryptInternalPrivate, getPublicKey, unwrap_sym, unwrap_symmetric, unwrap, unwrap, unwrap, unwrap, verify, wrap, wrapint getNoOfAgents()
throws EBaseException
EBaseExceptionint getNoOfRequiredAgents()
throws EBaseException
EBaseExceptionvoid setNoOfRequiredAgents(int number)
number - number of required agentsjava.util.Enumeration<java.lang.String> 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()