Interface AuthenticationValidationSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session is the remote end of a transport link from the acquisition
session and validates authentication credentials sent to it. The basic
method, authenticate() accepts a credential, validates it and
returns an Authentication containing the identity of the
authenticated user.
This OSID does not define any root interface for credentials and
challenge data. The object representing these are completely defined
within their Type ,providing flexibility in adapting to a variety
of application environments.
-
Method Summary
Modifier and TypeMethodDescriptionauthenticate(AuthenticationInput input) Validates and returns the authentication credential from the given data.Gets an interface for authentication input.Gets data that can be used for a challenge to the peer attempting authentication.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getAuthenticationInput
AuthenticationInput getAuthenticationInput()Gets an interface for authentication input.- Returns:
- authentication input
- Compliance:
mandatory- This method is must be implemented.
-
authenticate
Authentication authenticate(AuthenticationInput input) throws OperationFailedException, PermissionDeniedException Validates and returns the authentication credential from the given data.- Parameters:
input- the authentication input to be validated- Returns:
- the resulting authentication
- Throws:
NullArgumentException-inputisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnsupportedException-inputis not of this service- Compliance:
mandatory- This method is must be implemented.
-
getChallengeData
Challenge getChallengeData(AuthenticationInput input) throws OperationFailedException, PermissionDeniedException Gets data that can be used for a challenge to the peer attempting authentication.- Parameters:
input- authentication input- Returns:
- the acquired challenge data
- Throws:
NullArgumentException-inputisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failureUnimplementedException- challenge response not availableUnsupportedException-inputis not of this service- Compliance:
optional- This method must be implemented if {@code AuthenticationProcessManager.supportsChallenge()} is {@code true} .
-