@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public final class ContainerAuthentication extends Object implements org.springframework.security.core.Authentication
Authentication
implementation for Principal
given through HttpServletRequest
.
This is used to plug the container authentication to Spring Security, 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 |
---|---|
Collection<? extends org.springframework.security.core.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 Collection<? extends org.springframework.security.core.GrantedAuthority> getAuthorities()
getAuthorities
in interface org.springframework.security.core.Authentication
public Object getCredentials()
getCredentials
in interface org.springframework.security.core.Authentication
public Object getDetails()
getDetails
in interface org.springframework.security.core.Authentication
public String getPrincipal()
getPrincipal
in interface org.springframework.security.core.Authentication
public boolean isAuthenticated()
isAuthenticated
in interface org.springframework.security.core.Authentication
public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException
setAuthenticated
in interface org.springframework.security.core.Authentication
IllegalArgumentException
Copyright © 2004–2021. All rights reserved.