hudson.security
Class ContainerAuthentication

java.lang.Object
  extended by hudson.security.ContainerAuthentication
All Implemented Interfaces:
Serializable, Principal, org.acegisecurity.Authentication

public final class ContainerAuthentication
extends Object
implements org.acegisecurity.Authentication

Authentication implementation for Principal given through HttpServletRequest.

This is used to plug the container authentication to Acegi, for backward compatibility with Hudson < 1.160.

Author:
Kohsuke Kawaguchi
See Also:
Serialized Form

Constructor Summary
ContainerAuthentication(javax.servlet.http.HttpServletRequest request)
          Servlet container can tie a ServletRequest to the request handling thread, so we need to capture all the information upfront to allow Authentication to be passed to other threads, like update center does.
 
Method Summary
 org.acegisecurity.GrantedAuthority[] getAuthorities()
           
 Object getCredentials()
           
 Object getDetails()
           
 String getName()
           
 String getPrincipal()
           
 boolean isAuthenticated()
           
 void setAuthenticated(boolean isAuthenticated)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.security.Principal
equals, hashCode, toString
 

Constructor Detail

ContainerAuthentication

public ContainerAuthentication(javax.servlet.http.HttpServletRequest request)
Servlet container can tie a ServletRequest to the request handling thread, so we need to capture all the information upfront to allow Authentication to be passed to other threads, like update center does. See HUDSON-5382.

Method Detail

getAuthorities

public org.acegisecurity.GrantedAuthority[] getAuthorities()
Specified by:
getAuthorities in interface org.acegisecurity.Authentication

getCredentials

public Object getCredentials()
Specified by:
getCredentials in interface org.acegisecurity.Authentication

getDetails

public Object getDetails()
Specified by:
getDetails in interface org.acegisecurity.Authentication

getPrincipal

public String getPrincipal()
Specified by:
getPrincipal in interface org.acegisecurity.Authentication

isAuthenticated

public boolean isAuthenticated()
Specified by:
isAuthenticated in interface org.acegisecurity.Authentication

setAuthenticated

public void setAuthenticated(boolean isAuthenticated)
                      throws IllegalArgumentException
Specified by:
setAuthenticated in interface org.acegisecurity.Authentication
Throws:
IllegalArgumentException

getName

public String getName()
Specified by:
getName in interface Principal


Copyright © 2004-2013. All Rights Reserved.