egovframework.rfc3.iam.security.authentication.rlauth
Class RealNameAuthenticationToken
java.lang.Object
org.springframework.security.authentication.AbstractAuthenticationToken
egovframework.rfc3.iam.security.authentication.rlauth.RealNameAuthenticationToken
- All Implemented Interfaces:
- java.io.Serializable, java.security.Principal, org.springframework.security.core.Authentication, org.springframework.security.core.CredentialsContainer
public class RealNameAuthenticationToken
- extends org.springframework.security.authentication.AbstractAuthenticationToken
- implements java.io.Serializable
- See Also:
- Serialized Form
Constructor Summary |
RealNameAuthenticationToken(java.lang.String key,
java.lang.Object principal,
org.springframework.security.core.GrantedAuthority[] authorities)
Deprecated. use the second constructor |
RealNameAuthenticationToken(java.lang.String key,
java.lang.Object principal,
java.util.List<org.springframework.security.core.GrantedAuthority> authorities)
Constructor. |
Methods inherited from class org.springframework.security.authentication.AbstractAuthenticationToken |
eraseCredentials, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
RealNameAuthenticationToken
public RealNameAuthenticationToken(java.lang.String key,
java.lang.Object principal,
org.springframework.security.core.GrantedAuthority[] authorities)
- Deprecated. use the second constructor
RealNameAuthenticationToken
public RealNameAuthenticationToken(java.lang.String key,
java.lang.Object principal,
java.util.List<org.springframework.security.core.GrantedAuthority> authorities)
- Constructor.
- Parameters:
key
- to identify if this object made by an authorised clientprincipal
- the principal (typically a UserDetails
)authorities
- the authorities granted to the principal
- Throws:
java.lang.IllegalArgumentException
- if a null
was passed
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in interface java.security.Principal
- Overrides:
equals
in class org.springframework.security.authentication.AbstractAuthenticationToken
getCredentials
public java.lang.Object getCredentials()
- Always returns an empty
String
- Specified by:
getCredentials
in interface org.springframework.security.core.Authentication
- Returns:
- an empty String
getKeyHash
public int getKeyHash()
getPrincipal
public java.lang.Object getPrincipal()
- Specified by:
getPrincipal
in interface org.springframework.security.core.Authentication