Class CasServiceTicketAuthenticationToken.Builder<B extends CasServiceTicketAuthenticationToken.Builder<B>>
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>
org.springframework.security.cas.authentication.CasServiceTicketAuthenticationToken.Builder<B>
- All Implemented Interfaces:
Authentication.Builder<B>
- Enclosing class:
- CasServiceTicketAuthenticationToken
public static class CasServiceTicketAuthenticationToken.Builder<B extends CasServiceTicketAuthenticationToken.Builder<B>>
extends AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>
A builder of
CasServiceTicketAuthenticationToken
instances- Since:
- 7.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build anAuthentication
instancecredentials
(@Nullable Object credentials) Use this credential.Use this principal.Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken.AbstractAuthenticationBuilder
authenticated, authorities, details
-
Constructor Details
-
Builder
-
-
Method Details
-
principal
Description copied from interface:Authentication.Builder
Use this principal.Note that in many cases, the principal is strongly-typed. Implementations may choose to do a type check and are not necessarily expected to allow any object as a principal.
Implementations may choose to use this
principal
in combination with any principal from the pre-existingAuthentication
instance.- Parameters:
principal
- the principal to use- Returns:
- the
Authentication.Builder
for additional configuration - See Also:
-
credentials
Description copied from interface:Authentication.Builder
Use this credential.Note that since some credentials are insecure to store, this method is implemented as unsupported by default. Only implement or use this method if you support secure storage of the credential or if your implementation also implements
CredentialsContainer
and the credentials are thereby erased.- Parameters:
credentials
- the credentials to use- Returns:
- the
Authentication.Builder
for additional configuration - See Also:
-
build
Description copied from interface:Authentication.Builder
Build anAuthentication
instance- Returns:
- the
Authentication
instance
-