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.
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
org.acegisecurity.GrantedAuthority[] |
getAuthorities() |
Object |
getCredentials() |
Object |
getDetails() |
String |
getName() |
String |
getPrincipal() |
boolean |
isAuthenticated() |
void |
setAuthenticated(boolean isAuthenticated) |
public ContainerAuthentication(javax.servlet.http.HttpServletRequest request)
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.public org.acegisecurity.GrantedAuthority[] getAuthorities()
getAuthorities in interface org.acegisecurity.Authenticationpublic Object getCredentials()
getCredentials in interface org.acegisecurity.Authenticationpublic Object getDetails()
getDetails in interface org.acegisecurity.Authenticationpublic String getPrincipal()
getPrincipal in interface org.acegisecurity.Authenticationpublic boolean isAuthenticated()
isAuthenticated in interface org.acegisecurity.Authenticationpublic void setAuthenticated(boolean isAuthenticated)
throws IllegalArgumentException
setAuthenticated in interface org.acegisecurity.AuthenticationIllegalArgumentExceptionCopyright © 2019. All rights reserved.