Interface Key
- All Superinterfaces:
Browsable, Extensible, Identifiable, 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 .
-
Method Summary
Modifier and TypeMethodDescriptiongetAgent()Gets theAgentcorresponding to this key.Gets theAgentIdcorresponding to this key.getKeyRecord(Type keyRecordType) Gets the key record corresponding to the givenKeyrecordType.This method is used to retrieve an object implementing the requested record.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getAgentId
Id getAgentId()Gets theAgentIdcorresponding to this key.- Returns:
- the agent
Id - Compliance:
mandatory- This method must be implemented.
-
getAgent
Gets theAgentcorresponding to this key.- Returns:
- the agent
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getKeyRecord
Gets the key record corresponding to the givenKeyrecordType.This method is used to retrieve an object implementing the requested record. ThekeyRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(keyRecordType)istrue.- Parameters:
keyRecordType- a key record type- Returns:
- the key record
- Throws:
NullArgumentException-keyRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(keyRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-