Package pygar.identity_authority
Interface IdentifySelf<NameType,KeyType>
public interface IdentifySelf<NameType,KeyType>
This interface describes the component that will retrieve the
private key for an agent. In the simplest case, the agent is identified by
name and the identifier that will be returned for the name is the PKE
private key associated with the name. The interface should hide the details
of connecting with trusted identity authorities. At any site in the system,
it will be possible to return keys for the local aliases but not for the
names associated with other sites.
-
Method Summary
Modifier and Type Method Description KeyType
getPrivateKey(NameType name)
The primary operation of the interface obtains a Private Key for Public Key Encryption that is associated with the name.
-
Method Details
-
getPrivateKey
The primary operation of the interface obtains a Private Key for Public Key Encryption that is associated with the name. Note that this must be an alias for the current user otherwise the method must return null.- Parameters:
name
- The name or other identifier for the agent.- Returns:
- The private key associated with the name.
-