public interface IKeyService
| Modifier and Type | Method and Description |
|---|---|
void |
addAgentAsyncKeyRecovery(java.lang.String reqID,
java.lang.String agentID)
add approving agent in asynchronous key recovery
|
void |
addDistributedCredential(java.lang.String recoveryID,
java.lang.String uid,
java.lang.String pwd)
Adds password in the distributed recovery operation.
|
java.util.Hashtable<java.lang.String,java.lang.Object> |
createRecoveryParams(java.lang.String recoveryID)
Creates recovery parameters for the given recovery operation.
|
void |
destroyRecoveryParams(java.lang.String recoveryID)
Destroys recovery parameters for the given recovery operation.
|
byte[] |
doKeyRecovery(java.math.BigInteger kid,
Credential[] creds,
java.lang.String pwd,
netscape.security.x509.X509CertImpl cert,
java.lang.String delivery,
java.lang.String nickname,
java.lang.String agent)
Performs administrator-initiated key recovery.
|
byte[] |
doKeyRecovery(java.lang.String reqID,
java.lang.String password)
Async Recovers key for administrators.
|
Credential[] |
getDistributedCredentials(java.lang.String recoveryID)
Retrieves credentials in the distributed recovery operation.
|
java.lang.String |
getInitAgentAsyncKeyRecovery(java.lang.String reqID)
get async recovery request initiating agent
|
int |
getNoOfRequiredAgents()
Retrieves number of agent required to perform
key recovery operation.
|
java.lang.String |
getRecoveryID()
Retrieves recovery identifier.
|
java.util.Hashtable<java.lang.String,java.lang.Object> |
getRecoveryParams(java.lang.String recoveryID)
Retrieves recovery parameters for the given recovery operation.
|
java.lang.String |
initAsyncKeyRecovery(java.math.BigInteger kid,
netscape.security.x509.X509CertImpl cert,
java.lang.String agent,
java.lang.String realm)
Initiate asynchronous key recovery
|
boolean |
isApprovedAsyncKeyRecovery(java.lang.String reqID)
is async recovery request status APPROVED -
i.e.
|
int getNoOfRequiredAgents()
throws EBaseException
EBaseException - failed to retrieve valueboolean isApprovedAsyncKeyRecovery(java.lang.String reqID)
throws EBaseException
reqID - request idEBaseExceptionjava.lang.String getInitAgentAsyncKeyRecovery(java.lang.String reqID)
throws EBaseException
reqID - request idEBaseExceptionjava.lang.String initAsyncKeyRecovery(java.math.BigInteger kid,
netscape.security.x509.X509CertImpl cert,
java.lang.String agent,
java.lang.String realm)
throws EBaseException
kid - key identifiercert - certificate embedded in PKCS12agent - agent requesting recoveryrealm - authorization realmEBaseException - failed to initiate async recoveryvoid addAgentAsyncKeyRecovery(java.lang.String reqID,
java.lang.String agentID)
throws EBaseException
reqID - request idagentID - agent idEBaseException - failed to initiate async recoverybyte[] doKeyRecovery(java.math.BigInteger kid,
Credential[] creds,
java.lang.String pwd,
netscape.security.x509.X509CertImpl cert,
java.lang.String delivery,
java.lang.String nickname,
java.lang.String agent)
throws EBaseException
kid - key identifiercreds - list of credentials (id and password)pwd - password to protect PKCS12cert - certificate embedded in PKCS12delivery - delivery mechanismEBaseException - failed to perform recoverybyte[] doKeyRecovery(java.lang.String reqID,
java.lang.String password)
throws EBaseException
reqID - request idpassword - password of the PKCS12 package
subsystemEBaseException - failed to recover keyjava.lang.String getRecoveryID()
java.util.Hashtable<java.lang.String,java.lang.Object> createRecoveryParams(java.lang.String recoveryID)
throws EBaseException
recoveryID - recovery idEBaseException - failed to createvoid destroyRecoveryParams(java.lang.String recoveryID)
throws EBaseException
recoveryID - recovery idEBaseException - failed to destroyjava.util.Hashtable<java.lang.String,java.lang.Object> getRecoveryParams(java.lang.String recoveryID)
throws EBaseException
recoveryID - recovery idEBaseException - failed to retrievevoid addDistributedCredential(java.lang.String recoveryID,
java.lang.String uid,
java.lang.String pwd)
throws EBaseException
recoveryID - recovery iduid - agent uidpwd - agent passwordEBaseException - failed to addCredential[] getDistributedCredentials(java.lang.String recoveryID) throws EBaseException
recoveryID - recovery idEBaseException - failed to retrieve