public interface AuthenticationResultBuilder
extends java.io.Serializable
AuthenticationResultBuilder. It attempts to collect authentication objects
and will put the computed finalized primary Authentication into AuthenticationResult.
Concurrency semantics: implementations MUST be thread-safe.
Instances of this class should never be declared as a field. Rather they should always be passed around to methods that need them.| Modifier and Type | Method and Description |
|---|---|
AuthenticationResult |
build()
Build authentication result.
|
AuthenticationResult |
build(Service service)
Build authentication result.
|
AuthenticationResultBuilder |
collect(Authentication authentication)
Collect authentication objects from any number of processed authentication transactions.
|
AuthenticationResultBuilder |
collect(Credential credential)
Provided credentials immediately by the user.
|
java.util.Optional<Authentication> |
getInitialAuthentication()
Gets the initial authentication.
|
java.util.Optional<Authentication> getInitialAuthentication()
AuthenticationResultBuilder collect(Authentication authentication)
authentication - the authenticationAuthenticationResultBuilder collect(Credential credential)
credential - the credentialAuthenticationResult build()
AuthenticationResult build(Service service)
service - the service