public class KerberosServiceRequestToken
extends org.springframework.security.authentication.AbstractAuthenticationToken
KerberosServiceAuthenticationProvider.SpnegoAuthenticationProcessingFilter
and authenticated in KerberosServiceAuthenticationProvider.
This token cannot be re-authenticated, as you will get a Kerberos Reply error.KerberosServiceAuthenticationProvider,
KerberosAuthenticationProcessingFilter,
Serialized Form| Constructor and Description |
|---|
KerberosServiceRequestToken(byte[] token)
Creates an unauthenticated instance which should then be authenticated by
KerberosServiceAuthenticationProvider/code> |
KerberosServiceRequestToken(Object principal,
Collection<? extends org.springframework.security.core.GrantedAuthority> authorities,
byte[] token)
Creates an authenticated token, normally used as an output of an authentication provider.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj)
equals() is based only on the Kerberos token
|
Object |
getCredentials() |
Object |
getPrincipal() |
byte[] |
getToken()
Returns the Kerberos token
|
int |
hashCode()
Calculates hashcode based on the Kerberos token
|
public KerberosServiceRequestToken(Object principal, Collection<? extends org.springframework.security.core.GrantedAuthority> authorities, byte[] token)
principal - the user principal (mostly of instance UserDetailsauthorities - the authorities which are granted to the usertoken - the Kerberos/SPNEGO tokenUserDetailspublic KerberosServiceRequestToken(byte[] token)
KerberosServiceAuthenticationProvider/code>token - Kerberos/SPNEGO tokenKerberosServiceAuthenticationProviderpublic int hashCode()
public boolean equals(Object obj)
public Object getCredentials()
public Object getPrincipal()
public byte[] getToken()
Apache Fediz