|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.authentication.AbstractAuthenticationToken
org.springframework.security.extensions.kerberos.KerberosServiceRequestToken
public class KerberosServiceRequestToken
Holds the Kerberos/SPNEGO token for requesting a kerberized service
and is also the output of KerberosServiceAuthenticationProvider.
Will mostly be created in SpnegoAuthenticationProcessingFilter
and authenticated in KerberosServiceAuthenticationProvider.
This token cannot be re-authenticated, as you will get a Kerberos Reply error.
KerberosServiceAuthenticationProvider,
SpnegoAuthenticationProcessingFilter,
Serialized Form| Constructor Summary | |
|---|---|
KerberosServiceRequestToken(byte[] token)
Creates an unauthenticated instance which should then be authenticated by KerberosServiceAuthenticationProvider/code> |
|
KerberosServiceRequestToken(Object principal,
List<GrantedAuthority> authorities,
byte[] token)
Creates an authenticated token, normally used as an output of an authentication provider. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken |
|---|
getAuthorities, getDetails, getName, isAuthenticated, setAuthenticated, setDetails, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public KerberosServiceRequestToken(Object principal,
List<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>
- Parameters:
token - Kerberos/SPNEGO token- See Also:
KerberosServiceAuthenticationProvider
| Method Detail |
|---|
public int hashCode()
hashCode in interface PrincipalhashCode in class AbstractAuthenticationTokenpublic boolean equals(Object obj)
equals in interface Principalequals in class AbstractAuthenticationTokenpublic Object getCredentials()
public Object getPrincipal()
public byte[] getToken()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||