Interface AuthenticationKeysManager
- All Superinterfaces:
AuthenticationKeysProfile, AutoCloseable, Closeable, OsidManager, OsidManager, OsidProfile, Sourceable
The authentication keys manager provides access to authenticationkeys sessions and provides interoperability tests for various aspects of this service. The sessions included in this manager are:
-
KeyLookupSession: a session to access the keys ofAgents -
KeyQuerySession: a session to query keys -
KeySearchSession: a session to search for keys -
KeyAdminSession: a session to update the keys ofAgents -
KeyNotificationSession: a session to receive messages pertaining toKeychanges -
KeyAgencySession: a session to retrieveKeytoAgencymappings -
KeyAgencyAssignmentSession: a session to manageKeytoAgencymappings -
KeySmartAgencySession: a session to create dynamic agencies of keys
-
Method Summary
Modifier and TypeMethodDescriptionGets theOsidSessionassociated with the key administration service.getKeyAdminSessionForAgency(Id agencyId) Gets theOsidSessionassociated with the key admin service for the given agency.Gets the session for assigning key to agency mappings.Gets the session for retrieving key to agency mappings.Gets theOsidSessionassociated with the key lookup service.getKeyLookupSessionForAgency(Id agencyId) Gets theOsidSessionassociated with the key lookup service for the given agency.getKeyNotificationSession(KeyReceiver keyReceiver) Gets the notification session for notifications pertaining to service changes.getKeyNotificationSessionForAgency(KeyReceiver keyReceiver, Id agencyId) Gets theOsidSessionassociated with the key notification service for the given agency.Gets theOsidSessionassociated with the key search service.getKeySearchSessionForAgency(Id agencyId) Gets theOsidSessionassociated with the key search service for the given agency.getKeySmartAgencySession(Id agencyId) Gets theOsidSessionassociated with the key smart agency service for the given agency.Methods inherited from interface AuthenticationKeysProfile
getKeyRecordTypes, getKeySearchRecordTypes, supportsKeyAdmin, supportsKeyAgency, supportsKeyAgencyAssignment, supportsKeyLookup, supportsKeyNotification, supportsKeyRecordType, supportsKeySearch, supportsKeySearchRecordType, supportsKeySmartAgency, supportsVisibleFederationModifier and TypeMethodDescriptionGets the supportedKeyrecord types.Gets the supported key search record types.booleanTests if a key administrative service is supported.booleanTests if retrieving mappings of keys and agencies is supported.booleanTests if managing mappings of keys and agencies is supported.booleanTests if a key lookup service is supported.booleanTests if key notification is supported.booleansupportsKeyRecordType(Type keyRecordType) Tests if the givenKeyrecord type is supported.booleanTests if a key search service is supported.booleansupportsKeySearchRecordType(Type keySearchRecordType) Tests if the given key search record type is supported.booleanTests if key smart agency is available.booleanTests if federation is visible.Methods inherited from interface OsidManager
closeMethods inherited from interface OsidManager
changeBranch, initialize, rollbackServiceModifier and TypeMethodDescriptionvoidchangeBranch(Id branchId) Changes the service branch.voidinitialize(OsidRuntimeManager runtime) Initializes this manager.rollbackService(Date rollbackTime) Rolls back this service to a point in time.Methods inherited from interface OsidProfile
getBranch, getBranchId, getDescription, getDisplayName, getId, getLocales, getProxyRecordTypes, getReleaseDate, getVersion, supportsJournalBranching, supportsJournalRollback, supportsOSIDVersion, supportsProxyRecordTypeModifier and TypeMethodDescriptionGets this service branch.Gets theBranch Idrepresenting this service branch.Gets a description of this service implementation.Gets a display name for this service implementation.getId()Gets an identifier for this service implementation.Gets the locales supported in this service.Gets the proxy recordTypessupported in this service.Gets the date this service implementation was released.Gets the version of this service implementation.booleanTest for support of a journal branching service.booleanTest for support of a journaling rollback service.booleansupportsOSIDVersion(Version version) Test for support of an OSID specification version.booleansupportsProxyRecordType(Type proxyRecordType) Test for support of a proxy type.Methods inherited from interface Sourceable
getBranding, getBrandingIds, getLicense, getProvider, getProviderIdModifier and TypeMethodDescriptionGets a branding, such as an image or logo, expressed using theAssetinterface.Gets the branding assetIds.Gets the terms of usage.Gets theResourcerepresenting the provider.Gets theIdof the provider.
-
Method Details
-
getKeyLookupSession
Gets theOsidSessionassociated with the key lookup service.- Returns:
- a
KeyLookupSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsKeyLookup()isfalse- Compliance:
optional- This method must be implemented if {@code supportsKeyLookup()} is {@code true} .
-
getKeyLookupSessionForAgency
KeyLookupSession getKeyLookupSessionForAgency(Id agencyId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the key lookup service for the given agency.- Parameters:
agencyId- theIdof the agency- Returns:
a KeyLookupSession- Throws:
NotFoundException-agencyIdnot foundNullArgumentException-agencyIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsKeyLookup()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsKeyLookup()} and {@code supportsVisibleFederation()} are {@code true} .
-
getKeySearchSession
Gets theOsidSessionassociated with the key search service.- Returns:
- a
KeySearchSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsKeySearch()isfalse- Compliance:
optional- This method must be implemented if {@code supportsKeySearch()} is {@code true} .
-
getKeySearchSessionForAgency
KeySearchSession getKeySearchSessionForAgency(Id agencyId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the key search service for the given agency.- Parameters:
agencyId- theIdof the agency- Returns:
a KeySearchSession- Throws:
NotFoundException-agencyIdnot foundNullArgumentException-agencyIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsKeySearch()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsKeySearch()} and {@code supportsVisibleFederation()} are {@code true} .
-
getKeyAdminSession
Gets theOsidSessionassociated with the key administration service.- Returns:
- a
KeyAdminSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsKeyAdmin()isfalse- Compliance:
optional- This method must be implemented if {@code supportsKeyAdmin()} is {@code true} .
-
getKeyAdminSessionForAgency
KeyAdminSession getKeyAdminSessionForAgency(Id agencyId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the key admin service for the given agency.- Parameters:
agencyId- theIdof the agency- Returns:
a KeyAdminSession- Throws:
NotFoundException-agencyIdnot foundNullArgumentException-agencyIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsKeyAdmin()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsKeyAdmin()} and {@code supportsVisibleFederation()} are {@code true} .
-
getKeyNotificationSession
KeyNotificationSession getKeyNotificationSession(KeyReceiver keyReceiver) throws OperationFailedException Gets the notification session for notifications pertaining to service changes.- Parameters:
keyReceiver- the key receiver- Returns:
- an
KeyNotificationSession - Throws:
NullArgumentException-keyReceiverisnullOperationFailedException- unable to complete requestUnimplementedException-supportsKeyNotification()isfalse- Compliance:
optional- This method must be implemented if {@code supportsKeyNotification()} is {@code true} .
-
getKeyNotificationSessionForAgency
KeyNotificationSession getKeyNotificationSessionForAgency(KeyReceiver keyReceiver, Id agencyId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the key notification service for the given agency.- Parameters:
keyReceiver- the key receiveragencyId- theIdof the agency- Returns:
an KeyNotificationSession- Throws:
NotFoundException-agencyIdnot foundNullArgumentException-keyReceiveroragencyIdisnullOperationFailedException-unable to complete requestUnimplementedException-supportsKeyNotification()orsupportsVisibleFederation()isfalse- Compliance:
optional- This method must be implemented if {@code supportsKeyNotification()} and {@code supportsVisibleFederation()} are {@code true} .
-
getKeyAgencySession
Gets the session for retrieving key to agency mappings.- Returns:
- an
KeyAgencySession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsKeyAgency()isfalse- Compliance:
optional- This method must be implemented if {@code supportsKeyAgency()} is {@code true} .
-
getKeyAgencyAssignmentSession
Gets the session for assigning key to agency mappings.- Returns:
- a
KeyAgencyAsignmentSession - Throws:
OperationFailedException- unable to complete requestUnimplementedException-supportsKeyAgencyAssignment()isfalse- Compliance:
optional- This method must be implemented if {@code supportsKeyAgencyAssignment()} is {@code true} .
-
getKeySmartAgencySession
KeySmartAgencySession getKeySmartAgencySession(Id agencyId) throws NotFoundException, OperationFailedException Gets theOsidSessionassociated with the key smart agency service for the given agency.- Parameters:
agencyId- theIdof the agency- Returns:
- an
KeySmartAgencySession - Throws:
NotFoundException-agencyIdnot foundNullArgumentException-agencyIdisnullOperationFailedException- unable to complete requestUnimplementedException-supportsKeySmartAgency()isfalse- Compliance:
optional- This method must be implemented if {@code supportsKeySmartAgency()} and {@code supportsVisibeFederation()} is {@code true} .
-