|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.security.ui.SpringSecurityFilter org.springframework.security.ui.AbstractProcessingFilter org.springframework.security.ui.openid.OpenIDAuthenticationProcessingFilter
public class OpenIDAuthenticationProcessingFilter
Field Summary | |
---|---|
static String |
DEFAULT_CLAIMED_IDENTITY_FIELD
|
Fields inherited from class org.springframework.security.ui.AbstractProcessingFilter |
---|
authenticationDetailsSource, eventPublisher, messages, SPRING_SECURITY_LAST_EXCEPTION_KEY, SPRING_SECURITY_SAVED_REQUEST_KEY |
Fields inherited from class org.springframework.security.ui.SpringSecurityFilter |
---|
logger |
Fields inherited from interface org.springframework.core.Ordered |
---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
Constructor Summary | |
---|---|
OpenIDAuthenticationProcessingFilter()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
Authentication |
attemptAuthentication(HttpServletRequest req)
Performs actual authentication. |
protected String |
buildReturnToUrl(HttpServletRequest request)
|
protected String |
determineFailureUrl(HttpServletRequest request,
AuthenticationException failed)
|
String |
getClaimedIdentityFieldName()
|
OpenIDConsumer |
getConsumer()
|
String |
getDefaultFilterProcessesUrl()
Specifies the default filterProcessesUrl for the
implementation. |
int |
getOrder()
|
Map |
getRealmMapping()
Maps the return_to url to a realm. For example http://www.example.com/j_spring_openid_security_check -> http://www.example.com/realm If no mapping is provided then the returnToUrl will be parsed to extract the protocol, hostname and port followed by a trailing slash. This means that http://www.example.com/j_spring_openid_security_check will automatically become http://www.example.com:80/ |
protected boolean |
isAuthenticated(HttpServletRequest request)
|
protected boolean |
isOpenIdRequest(HttpServletRequest request)
The OpenIdAuthenticationProcessingFilter will ignore the request coming in if this method returns false. |
protected String |
lookupRealm(String returnToUrl)
|
protected String |
obtainUsername(HttpServletRequest req)
|
protected void |
onUnsuccessfulAuthentication(HttpServletRequest request,
HttpServletResponse response,
AuthenticationException failed)
|
void |
setClaimedIdentityFieldName(String claimedIdentityFieldName)
|
void |
setConsumer(OpenIDConsumer consumer)
|
void |
setRealmMapping(Map realmMapping)
Maps the return_to url to a realm. For example http://www.example.com/j_spring_openid_security_check -> http://www.example.com/realm If no mapping is provided then the returnToUrl will be parsed to extract the protocol, hostname and port followed by a trailing slash. This means that http://www.example.com/j_spring_openid_security_check will automatically become http://www.example.com:80/ |
protected void |
unsuccessfulAuthentication(HttpServletRequest request,
HttpServletResponse response,
AuthenticationException failed)
|
Methods inherited from class org.springframework.security.ui.SpringSecurityFilter |
---|
destroy, doFilter, init, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_CLAIMED_IDENTITY_FIELD
Constructor Detail |
---|
public OpenIDAuthenticationProcessingFilter()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class AbstractProcessingFilter
Exception
public Authentication attemptAuthentication(HttpServletRequest req) throws AuthenticationException
AbstractProcessingFilter
attemptAuthentication
in class AbstractProcessingFilter
req
- from which to extract parameters and perform the
authentication
AuthenticationException
- if authentication failsprotected String determineFailureUrl(HttpServletRequest request, AuthenticationException failed)
determineFailureUrl
in class AbstractProcessingFilter
protected String lookupRealm(String returnToUrl)
protected String buildReturnToUrl(HttpServletRequest request)
public String getClaimedIdentityFieldName()
public OpenIDConsumer getConsumer()
public String getDefaultFilterProcessesUrl()
AbstractProcessingFilter
filterProcessesUrl
for the
implementation.
getDefaultFilterProcessesUrl
in class AbstractProcessingFilter
filterProcessesUrl
protected boolean isAuthenticated(HttpServletRequest request)
protected boolean isOpenIdRequest(HttpServletRequest request)
request
- HttpServletRequest we're processing
protected String obtainUsername(HttpServletRequest req)
protected void onUnsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, AuthenticationException failed) throws IOException
onUnsuccessfulAuthentication
in class AbstractProcessingFilter
IOException
public void setClaimedIdentityFieldName(String claimedIdentityFieldName)
public void setConsumer(OpenIDConsumer consumer)
protected void unsuccessfulAuthentication(HttpServletRequest request, HttpServletResponse response, AuthenticationException failed) throws IOException
unsuccessfulAuthentication
in class AbstractProcessingFilter
IOException
public int getOrder()
public Map getRealmMapping()
public void setRealmMapping(Map realmMapping)
realmMapping
- containing returnToUrl -> realm mappings
|
Spring Security Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |