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.
|
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)
Sets the authentication.
|
void |
setDefaultGrantedAuthority(org.springframework.security.core.GrantedAuthority value)
Sets the default granted authority.
|
void |
setGrantedAuthorityFactory(GrantedAuthorityFactory value)
Sets the granted authority factory.
|
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
IOException
javax.servlet.ServletException
protected 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.InitializingBean
afterPropertiesSet
in class org.springframework.web.filter.GenericFilterBean
javax.servlet.ServletException
protected 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 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–2015 com.github.dblock. All rights reserved.