hudson.security
Class ContainerAuthentication
java.lang.Object
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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.