|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AgentIdentityService
This service is used by agents to obtain a cryptographic identity and transfer this identity if the agent moves.
The requestor must implement AgentIdentityClient.
| Method Summary | |
|---|---|
void |
acquire(TransferableIdentity id)
Creates a cryptographic identity for an agent. |
void |
release()
Notifies the cryptographic service that the cryptographic identity of the requestor is no longer needed. |
TransferableIdentity |
transferTo(MessageAddress targetNode)
Notify the cryptographic service that an agent is about to move to another node. |
| Method Detail |
|---|
void acquire(TransferableIdentity id)
throws PendingRequestException,
IdentityDeniedException
If the agent already has a cryptographic identity, the method returns immediately. If the agent does not have a cryptographic key, or if no key is valid, a new key is created.
This service provider will call checkPermission() to make sure that only known entities will call the service.
If the 'id' parameter is not null, the cryptographic service attempts to install keys from an agent that was previously running on a remote node. The 'id' parameter should be the TransferableIdentity object that was returned on the original host when transferTo() was called. The TransferableIdentity should then have been sent to the new host when the agent was moved.
id - the identity of an agent that was moved from another node.
PendingRequestException - the certificate authority
did not sign the request immediately. The same request
should be sent again later
IdentityDeniedException - the certificiate authority
refused to sign the keyvoid release()
TransferableIdentity transferTo(MessageAddress targetNode)
- Wrap agent key pair and protect it with remote node public key - Revoke agent key (remote node must create a new key)
targetNode - the name of the remote NodeAgentagent where
the agent will be run next.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||