OSID Logo
OSID Specifications
authentication keys package
Version 3.1.0
Interfaceosid.authentication.keys.KeySmartAgencySession
Implementsosid.OsidSession
Used Byosid.authentication.keys.AuthenticationKeysManager
osid.authentication.keys.AuthenticationKeysProxyManager
Description

This session manages queries and sequencing to create "smart" dynamic catalogs. A KeyQuery can be retrieved from this session and mapped to this Agency to create a virtual collection of Keys. The keys may be sequenced using the KeySearchOrder from this session.

This Agency has a default query that matches any key and a default search order that specifies no sequencing. The queries may be examined using an KeyQueryInspector. The query may be modified by converting the inspector back to an KeyQuery.

MethodgetAgencyId
Description

Gets the Agency Id associated with this session.

Returnosid.id.Id the Agency Id associated with this session
Compliancemandatory This method must be implemented.
MethodgetAgency
Description

Gets the Agency associated with this session.

Returnosid.authentication.Agency the Agency associated with this session
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure
Compliancemandatory This method must be implemented.
MethodcanManageSmartAgencies
Description

Tests if this user can manage smart agencies. A return of true does not guarantee successful authorization. A return of false indicates that it is known methods in this session will result in a PERMISSION_DENIED. This is intended as a hint to an application that may opt not to offer operations to unauthorized users.

Returnboolean false if smart agency management is not authorized, true otherwise
Compliancemandatory This method must be implemented.
MethodgetKeyQuery
Description

Gets a key query.

Returnosid.authentication.keys.KeyQuery the key query
Compliancemandatory This method must be implemented.
MethodgetKeySearchOrder
Description

Gets a key search order.

Returnosid.authentication.keys.KeySearchOrder the key search order
Compliancemandatory This method must be implemented.
MethodapplyKeyQuery
Description

Applies a key query to this agency.

Parametersosid.authentication.keys.KeyQuerykeyQuery the key query
ErrorsNULL_ARGUMENT keyQuery is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED keyQuery not of this service
Compliancemandatory This method must be implemented.
MethodinspectKeyQuery
Description

Gets a key query inspector for this agency.

Returnosid.authentication.keys.KeyQueryInspector the key query inspector
ErrorsOPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
Compliancemandatory This method must be implemented.
MethodapplyKeySequencing
Description

Applies a key search order to this agency.

Parametersosid.authentication.keys.KeySearchOrderkeySearchOrder the key search order
ErrorsNULL_ARGUMENT keySearchOrder is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED keySearchOrder not of this service
Compliancemandatory This method must be implemented.
MethodgetKeyQueryFromInspector
Description

Gets a key query from an inspector.

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.