au.edu.archer.acegi.httpheader
Class HTTPHeaderToken
java.lang.Object
org.acegisecurity.providers.AbstractAuthenticationToken
au.edu.archer.acegi.httpheader.HTTPHeaderToken
- All Implemented Interfaces:
- java.io.Serializable, java.security.Principal, org.acegisecurity.Authentication
public class HTTPHeaderToken
- extends org.acegisecurity.providers.AbstractAuthenticationToken
Store the HTTP header token as the principal.
Typically this will be the SSL_CLIENT_S_DN, REMOTE_USER
or another forwarded attribute.
- Author:
- Nigel Sim
- See Also:
- Serialized Form
|
Field Summary |
protected org.apache.log4j.Logger |
logger
|
|
Constructor Summary |
HTTPHeaderToken(java.lang.String dn,
org.acegisecurity.GrantedAuthority[] authorities)
|
| Methods inherited from class org.acegisecurity.providers.AbstractAuthenticationToken |
equals, getDetails, getName, hashCode, isAuthenticated, setAuthenticated, setDetails, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
logger
protected org.apache.log4j.Logger logger
HTTPHeaderToken
public HTTPHeaderToken(java.lang.String dn,
org.acegisecurity.GrantedAuthority[] authorities)
getCredentials
public java.lang.Object getCredentials()
getAuthorities
public org.acegisecurity.GrantedAuthority[] getAuthorities()
- Create a copy of the authorities array.
- Specified by:
getAuthorities in interface org.acegisecurity.Authentication- Overrides:
getAuthorities in class org.acegisecurity.providers.AbstractAuthenticationToken
getPrincipal
public java.lang.Object getPrincipal()
Copyright © 2008. All Rights Reserved.