OSID Logo
OSID Specifications
authentication keys package
Version 3.1.0
Interfaceosid.authentication.keys.KeySearchSession
Implementsosid.authentication.keys.KeyQuerySession
Used Byosid.authentication.keys.AuthenticationKeysManager
osid.authentication.keys.AuthenticationKeysProxyManager
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.KeySearch the key search
Compliancemandatory This 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.KeySearchOrder the key search order
Compliancemandatory This method must be implemented.
MethodgetKeysBySearch
Description

Gets a list of Keys matching the given search.

Parametersosid.authentication.keys.KeyQuerykeyQuery the key query
osid.authentication.keys.KeySearchkeySearch the key search
Returnosid.authentication.keys.KeySearchResults the returned search results
ErrorsNULL_ARGUMENT keyQuery or keySearch is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
UNSUPPORTED keySearch or a keyQuery is not of this service
Compliancemandatory This method must be implemented.
MethodgetKeyQueryFromInspector
Description

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

Parametersosid.authentication.keys.KeyQueryInspectorkeyQueryInspector a query inspector
Returnosid.authentication.keys.KeyQuery the key query
ErrorsNULL_ARGUMENT keyQueryInspector is null
UNSUPPORTED keyQueryInspector is not of this service
Compliancemandatory This method must be implemented.