public interface AuthenticationSystemSupport
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.
Modifier and Type | Method and Description |
---|---|
AuthenticationResultBuilder |
establishAuthenticationContextFromInitial(Authentication authentication,
Credential credential)
Initiate potential multi-transaction authentication event by handling the initial authentication transaction.
|
AuthenticationResult |
finalizeAllAuthenticationTransactions(AuthenticationResultBuilder authenticationResultBuilder,
Service service)
Finalize all authentication transactions processed and collected for this authentication event.
|
AuthenticationTransactionManager |
getAuthenticationTransactionManager()
Gets authentication transaction manager.
|
PrincipalElectionStrategy |
getPrincipalElectionStrategy()
Gets principal election strategy.
|
default AuthenticationResult |
handleAndFinalizeSingleAuthenticationTransaction(Service service,
java.util.Collection<Credential> credentials)
Handle a single-transaction authentication event and immediately produce a finalized
AuthenticationResult . |
AuthenticationResult |
handleAndFinalizeSingleAuthenticationTransaction(Service service,
Credential... credential)
Handle a single-transaction authentication event and immediately produce a finalized
AuthenticationResult . |
AuthenticationResultBuilder |
handleAuthenticationTransaction(Service service,
AuthenticationResultBuilder authenticationResultBuilder,
Credential... credential)
Handle single authentication transaction within potential multi-transaction authentication event.
|
AuthenticationResultBuilder |
handleInitialAuthenticationTransaction(Service service,
Credential... credential)
Initiate potential multi-transaction authentication event by handling the initial authentication transaction.
|
AuthenticationTransactionManager getAuthenticationTransactionManager()
PrincipalElectionStrategy getPrincipalElectionStrategy()
AuthenticationResultBuilder establishAuthenticationContextFromInitial(Authentication authentication, Credential credential)
authentication
- a pre-established authentication object in a multi-legged authentication flow.credential
- a credential for the authentication transaction.AuthenticationResultBuilder handleInitialAuthenticationTransaction(Service service, Credential... credential) throws AuthenticationException
service
- the servicecredential
- a credential for the initial authentication transaction.AuthenticationException
- exception to indicate authentication processing failure.AuthenticationResultBuilder handleAuthenticationTransaction(Service service, AuthenticationResultBuilder authenticationResultBuilder, Credential... credential) throws AuthenticationException
service
- the serviceauthenticationResultBuilder
- builder used to accumulate authentication transactions in this authentication event.credential
- a credential used for this authentication transaction.AuthenticationException
- exception to indicate authentication processing failure.AuthenticationResult finalizeAllAuthenticationTransactions(AuthenticationResultBuilder authenticationResultBuilder, Service service)
authenticationResultBuilder
- builder used to accumulate authentication transactions in this authentication event.service
- a service for this authentication event.AuthenticationResult handleAndFinalizeSingleAuthenticationTransaction(Service service, Credential... credential) throws AuthenticationException
AuthenticationResult
.service
- a service for this authentication event.credential
- a credential used for this single-transaction authentication event.AuthenticationException
- exception to indicate authentication processing failure.default AuthenticationResult handleAndFinalizeSingleAuthenticationTransaction(Service service, java.util.Collection<Credential> credentials) throws AuthenticationException
AuthenticationResult
.service
- a service for this authentication event.credentials
- credentials used for this single-transaction authentication event.AuthenticationException
- exception to indicate authentication processing failure.