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
,org.springframework.security.core.Authentication
,org.springframework.security.core.CredentialsContainer
,KerberosAuthentication
public class KerberosUsernamePasswordAuthenticationToken
extends org.springframework.security.authentication.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()
-
Constructor Summary
ConstructorsConstructorDescriptionKerberosUsernamePasswordAuthenticationToken
(Object principal, Object credentials, Collection<? extends org.springframework.security.core.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, 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 org.springframework.security.core.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
-