public class NegotiateSecurityFilter
extends org.springframework.web.filter.GenericFilterBean
| Constructor and Description |
|---|
NegotiateSecurityFilter()
Instantiates a new negotiate security filter.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain) |
org.springframework.security.core.GrantedAuthority |
getDefaultGrantedAuthority()
Gets the default granted authority.
|
GrantedAuthorityFactory |
getGrantedAuthorityFactory()
Gets the granted authority factory.
|
PrincipalFormat |
getPrincipalFormat()
Gets the principal format.
|
SecurityFilterProviderCollection |
getProvider()
Gets the provider.
|
PrincipalFormat |
getRoleFormat()
Gets the role format.
|
boolean |
isAllowGuestLogin()
Checks if is allow guest login.
|
boolean |
isImpersonate()
Checks if is impersonate.
|
protected void |
sendUnauthorized(javax.servlet.http.HttpServletResponse response,
boolean close)
Send a 401 Unauthorized along with protocol authentication headers.
|
void |
setAllowGuestLogin(boolean value)
Sets the allow guest login.
|
protected boolean |
setAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
Invoked when authentication towards ad was succesful to populate securitycontext Override to add service provider
authorization checks.
|
void |
setDefaultGrantedAuthority(org.springframework.security.core.GrantedAuthority value)
Sets the default granted authority.
|
void |
setGrantedAuthorityFactory(GrantedAuthorityFactory value)
Sets the granted authority factory.
|
void |
setImpersonate(boolean value)
Enable/Disable impersonation.
|
void |
setPrincipalFormat(String value)
Sets the principal format.
|
void |
setPrincipalFormatEnum(PrincipalFormat value)
Sets the principal format enum.
|
void |
setProvider(SecurityFilterProviderCollection value)
Sets the provider.
|
void |
setRoleFormat(String value)
Sets the role format.
|
void |
setRoleFormatEnum(PrincipalFormat value)
Sets the role format enum.
|
public NegotiateSecurityFilter()
public void doFilter(javax.servlet.ServletRequest req,
javax.servlet.ServletResponse res,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
IOExceptionjavax.servlet.ServletExceptionprotected boolean setAuthentication(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.Authentication authentication)
request - the requestresponse - the responseauthentication - the authenticationpublic void afterPropertiesSet()
throws javax.servlet.ServletException
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class org.springframework.web.filter.GenericFilterBeanjavax.servlet.ServletExceptionprotected void sendUnauthorized(javax.servlet.http.HttpServletResponse response,
boolean close)
response - HTTP Responseclose - Close connection.public PrincipalFormat getPrincipalFormat()
public void setPrincipalFormatEnum(PrincipalFormat value)
value - the new principal format enumpublic void setPrincipalFormat(String value)
value - the new principal formatpublic PrincipalFormat getRoleFormat()
public void setRoleFormatEnum(PrincipalFormat value)
value - the new role format enumpublic void setRoleFormat(String value)
value - the new role formatpublic boolean isAllowGuestLogin()
public void setAllowGuestLogin(boolean value)
value - the new allow guest loginpublic void setImpersonate(boolean value)
value - true to enable impersonation, false otherwisepublic boolean isImpersonate()
public SecurityFilterProviderCollection getProvider()
public void setProvider(SecurityFilterProviderCollection value)
value - the new providerpublic GrantedAuthorityFactory getGrantedAuthorityFactory()
public void setGrantedAuthorityFactory(GrantedAuthorityFactory value)
value - the new granted authority factorypublic org.springframework.security.core.GrantedAuthority getDefaultGrantedAuthority()
public void setDefaultGrantedAuthority(org.springframework.security.core.GrantedAuthority value)
value - the new default granted authorityCopyright © 2010–2020 com.github.waffle. All rights reserved.