Class KerberosUsernamePasswordAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.authentication.UsernamePasswordAuthenticationToken
org.springframework.security.kerberos.authentication.KerberosUsernamePasswordAuthenticationToken
- All Implemented Interfaces:
Serializable
,Principal
,Authentication
,CredentialsContainer
,KerberosAuthentication
public class KerberosUsernamePasswordAuthenticationToken
extends UsernamePasswordAuthenticationToken
implements KerberosAuthentication
Holds the Username/Password as well as the JAAS Subject allowing multi-tier authentications using Kerberos.
The JAAS Subject has in its private credentials the Kerberos tickets for generating new
tickets against other service principals using
KerberosMultiTier.authenticateService()
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken
UsernamePasswordAuthenticationToken.Builder<B extends UsernamePasswordAuthenticationToken.Builder<B>>
Nested classes/interfaces inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
AbstractAuthenticationToken.AbstractAuthenticationBuilder<B extends AbstractAuthenticationToken.AbstractAuthenticationBuilder<B>>
-
Constructor Summary
ConstructorsConstructorDescriptionKerberosUsernamePasswordAuthenticationToken
(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities, JaasSubjectHolder subjectHolder) Creates an authentication token that holds the username and password, and the Subject that the user will need to create new authentication tokens against other services. -
Method Summary
Methods inherited from class org.springframework.security.authentication.UsernamePasswordAuthenticationToken
authenticated, eraseCredentials, getCredentials, getPrincipal, setAuthenticated, toBuilder, unauthenticated
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString
-
Constructor Details
-
KerberosUsernamePasswordAuthenticationToken
public KerberosUsernamePasswordAuthenticationToken(Object principal, Object credentials, Collection<? extends GrantedAuthority> authorities, JaasSubjectHolder subjectHolder) Creates an authentication token that holds the username and password, and the Subject that the user will need to create new authentication tokens against other services.
- Parameters:
principal
-credentials
-authorities
-subjectHolder
-
-
-
Method Details
-
getJaasSubjectHolder
- Specified by:
getJaasSubjectHolder
in interfaceKerberosAuthentication
-