public interface Key extends OsidObject
The key represents cryptographic data managed by the authentication
service. An Agent maps to a Key and there is
only one Key per Agent.
| Modifier and Type | Method and Description |
|---|---|
Agent |
getAgent()
Gets the
Agent corresponding to this key. |
Id |
getAgentId()
Gets the
AgentId corresponding to this key. |
KeyRecord |
getKeyRecord(Type keyRecordType)
Gets the key record corresponding to the given
Key
record Type. |
getDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypeId getAgentId()
AgentId corresponding to this key. Id mandatory - This method must be implemented. Agent getAgent() throws OperationFailedException
Agent corresponding to this key.OperationFailedException - unable to complete requestmandatory - This method must be implemented. KeyRecord getKeyRecord(Type keyRecordType) throws OperationFailedException
Key
record Type. This method is used to retrieve an object
implementing the requested record. The keyRecordType
may be the Type returned in getRecordTypes()
or any of its parents in a Type hierarchy where
hasRecordType(keyRecordType) is true .keyRecordType - a key record typeNullArgumentException - keyRecordType is
null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(keyRecordType) is false mandatory - This method must be implemented.