au.edu.archer.acegi.httpheader
Class HTTPHeaderToken

java.lang.Object
  extended by org.acegisecurity.providers.AbstractAuthenticationToken
      extended by 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)
           
 
Method Summary
 org.acegisecurity.GrantedAuthority[] getAuthorities()
          Create a copy of the authorities array.
 java.lang.Object getCredentials()
           
 java.lang.Object getPrincipal()
           
 
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
 

Field Detail

logger

protected org.apache.log4j.Logger logger
Constructor Detail

HTTPHeaderToken

public HTTPHeaderToken(java.lang.String dn,
                       org.acegisecurity.GrantedAuthority[] authorities)
Method Detail

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.