Package org.apereo.cas.authentication
Interface AuthenticationSystemSupport
public interface AuthenticationSystemSupport
This is
AuthenticationSystemSupport - a facade that exposes a high level authentication system API to CAS core.
This component is to be injected into others where authentication subsystem interaction needs to happen - like performing single authentication transaction, performing a finalized authentication transaction, or finalizing an all authentication transactions that might have been processed and collected.
This facade also exposes lower level components that implementations use to perform necessary authentication steps, so that clients of this API have the ability to use those components directly if they choose so.
- Since:
- 4.2.0
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionestablishAuthenticationContextFromInitial(Authentication authentication) Establish authentication context from initial authentication result builder.establishAuthenticationContextFromInitial(Authentication authentication, Credential... credential) Initiate potential multi-transaction authentication event by handling the initial authentication transaction.finalizeAllAuthenticationTransactions(AuthenticationResultBuilder authenticationResultBuilder, Service service) Finalize all authentication transactions processed and collected for this authentication event.default AuthenticationResultfinalizeAuthenticationTransaction(Credential... credentials) Finalize authentication transaction.default AuthenticationResultfinalizeAuthenticationTransaction(Service service, Collection<Credential> credentials) Handle a single-transaction authentication event and immediately produce a finalizedAuthenticationResult.finalizeAuthenticationTransaction(Service service, Credential... credential) Handle a single-transaction authentication event and immediately produce a finalizedAuthenticationResult.Gets authentication result builder factory.Gets authentication transaction factory.Gets authentication transaction manager.Gets principal election strategy.Gets principal factory.Gets principal resolver.handleAuthenticationTransaction(Service service, AuthenticationResultBuilder authenticationResultBuilder, Credential... credential) Handle single authentication transaction within potential multi-transaction authentication event.handleInitialAuthenticationTransaction(Service service, Credential... credential) Initiate potential multi-transaction authentication event by handling the initial authentication transaction.
-
Field Details
-
BEAN_NAME
Default impl bean name.- See Also:
-
-
Method Details
-
getPrincipalFactory
PrincipalFactory getPrincipalFactory()Gets principal factory.- Returns:
- the principal factory
-
getAuthenticationTransactionManager
AuthenticationTransactionManager getAuthenticationTransactionManager()Gets authentication transaction manager.- Returns:
- the authentication transaction manager
-
getPrincipalElectionStrategy
PrincipalElectionStrategy getPrincipalElectionStrategy()Gets principal election strategy.- Returns:
- the principal election strategy
-
getPrincipalResolver
PrincipalResolver getPrincipalResolver()Gets principal resolver.- Returns:
- the principal resolver
-
getAuthenticationTransactionFactory
AuthenticationTransactionFactory getAuthenticationTransactionFactory()Gets authentication transaction factory.- Returns:
- the authentication transaction factory
-
getAuthenticationResultBuilderFactory
AuthenticationResultBuilderFactory getAuthenticationResultBuilderFactory()Gets authentication result builder factory.- Returns:
- the authentication result builder factory
-
establishAuthenticationContextFromInitial
AuthenticationResultBuilder establishAuthenticationContextFromInitial(Authentication authentication, Credential... credential) Initiate potential multi-transaction authentication event by handling the initial authentication transaction.- Parameters:
authentication- a pre-established authentication object in a multi-legged authentication flow.credential- a credential for the authentication transaction.- Returns:
- authentication result builder used to accumulate authentication transactions in this authentication event.
- Since:
- 5.0.0
-
establishAuthenticationContextFromInitial
AuthenticationResultBuilder establishAuthenticationContextFromInitial(Authentication authentication) Establish authentication context from initial authentication result builder.- Parameters:
authentication- the authentication- Returns:
- the authentication result builder
-
handleInitialAuthenticationTransaction
AuthenticationResultBuilder handleInitialAuthenticationTransaction(Service service, Credential... credential) throws Throwable Initiate potential multi-transaction authentication event by handling the initial authentication transaction.- Parameters:
service- the servicecredential- a credential for the initial authentication transaction.- Returns:
- authentication result builder used to accumulate authentication transactions in this authentication event.
- Throws:
AuthenticationException- exception to indicate authentication processing failure.Throwable- Since:
- 5.0.0
-
handleAuthenticationTransaction
AuthenticationResultBuilder handleAuthenticationTransaction(Service service, AuthenticationResultBuilder authenticationResultBuilder, Credential... credential) throws Throwable Handle single authentication transaction within potential multi-transaction authentication event.- Parameters:
service- the serviceauthenticationResultBuilder- builder used to accumulate authentication transactions in this authentication event.credential- a credential used for this authentication transaction.- Returns:
- authentication result builder used to accumulate authentication transactions in this authentication event.
- Throws:
Throwable- the throwable- Since:
- 5.0.0
-
finalizeAllAuthenticationTransactions
AuthenticationResult finalizeAllAuthenticationTransactions(AuthenticationResultBuilder authenticationResultBuilder, Service service) throws Throwable Finalize all authentication transactions processed and collected for this authentication event.- Parameters:
authenticationResultBuilder- builder used to accumulate authentication transactions in this authentication event.service- a service for this authentication event.- Returns:
- authentication result representing a final outcome of the authentication event.
- Throws:
Throwable- the throwable- Since:
- 5.0.0
-
finalizeAuthenticationTransaction
AuthenticationResult finalizeAuthenticationTransaction(Service service, Credential... credential) throws Throwable Handle a single-transaction authentication event and immediately produce a finalizedAuthenticationResult.- Parameters:
service- a service for this authentication event.credential- a credential used for this single-transaction authentication event.- Returns:
- authentication result representing a final outcome of the authentication event.
- Throws:
AuthenticationException- exception to indicate authentication processing failure.Throwable- Since:
- 5.0.0
-
finalizeAuthenticationTransaction
default AuthenticationResult finalizeAuthenticationTransaction(Service service, Collection<Credential> credentials) throws Throwable Handle a single-transaction authentication event and immediately produce a finalizedAuthenticationResult.- Parameters:
service- a service for this authentication event.credentials- credentials used for this single-transaction authentication event.- Returns:
- authentication result representing a final outcome of the authentication event.
- Throws:
Throwable- the throwable- Since:
- 5.3.0
-
finalizeAuthenticationTransaction
default AuthenticationResult finalizeAuthenticationTransaction(Credential... credentials) throws Throwable Finalize authentication transaction.- Parameters:
credentials- the credentials- Returns:
- the authentication result
- Throws:
Throwable- the throwable
-