OSID Logo
OSID Specifications
authentication keys package
Version 3.0.0
Release Candidate Preview
Interfaceosid.authentication.keys.KeySearchSession
Implementsosid.authentication.keys.KeyQuerySession
Description

This session provides methods for searching Keys. The search query is constructed using the KeyQuery. The key record Type also specifies the record for the key query.

getKeysByQuery() is the basic search method and returns a list of Keys. A more advanced search may be performed with getKeysBySearch(). It accepts an KeySearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getKeysBySearch() returns a KeySearchResult that can be used to access the resulting KeyList or be used to perform a search within the result set through KeySearch.

This session defines views that offer differing behaviors for searching.

  • federated agency view: searches include keys in agencies of which this agency is a ancestor in the agency hierarchy
  • isolated agency view: searches are restricted to agents in this agency

Keys may have a query record indicated by their respective record types. The query record is accessed via the KeyQuery.

MethodgetKeySearch
Description

Gets a key query.

Returnosid.authentication.keys.KeySearchthe key search
CompliancemandatoryThis method must be implemented.
MethodgetKeySearchOrder
Description

Gets a key search order. The KeySearchOrder is supplied to a KeySearch to specify the ordering of results.

Returnosid.authentication.keys.KeySearchOrderthe key search order
CompliancemandatoryThis method must be implemented.
MethodgetKeysBySearch
Description

Gets a list of Keys matching the given search.

Parametersosid.authentication.keys.KeyQuerykeyQuerythe key query
osid.authentication.keys.KeySearchkeySearchthe key search
Returnosid.authentication.keys.KeySearchResultsthe returned search results
ErrorsNULL_ARGUMENT keyQuery or keySearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTED keySearch or a keyQuery is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetKeyQueryFromInspector
Description

Gets a key query from an inspector. The inspector is available from an KeySearchResults.

Parametersosid.authentication.keys.KeyQueryInspectorkeyQueryInspectora query inspector
Returnosid.authentication.keys.KeyQuerythe key query
ErrorsNULL_ARGUMENT keyQueryInspector is null
UNSUPPORTED keyQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.