|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.security.oauth.provider.OAuthProviderProcessingFilter
org.springframework.security.oauth.provider.UnauthenticatedRequestTokenProcessingFilter
public class UnauthenticatedRequestTokenProcessingFilter
Processing filter for handling a request for an OAuth token. The default implementation assumes a request for a new
unauthenticated request token. The default processes URL is "/oauth_request_token".
| Field Summary | |
|---|---|
static int |
FILTER_CHAIN_ORDER
|
| Fields inherited from class org.springframework.security.oauth.provider.OAuthProviderProcessingFilter |
|---|
messages, OAUTH_PROCESSING_HANDLED |
| Fields inherited from interface org.springframework.core.Ordered |
|---|
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE |
| Constructor Summary | |
|---|---|
UnauthenticatedRequestTokenProcessingFilter()
|
|
| Method Summary | |
|---|---|
protected OAuthProviderToken |
createOAuthToken(ConsumerAuthentication authentication)
Create the OAuth token for the specified consumer key. |
int |
getOrder()
The request token filter comes after the exception translation filter. |
java.lang.String |
getResponseContentType()
The content type of the response. |
protected void |
onNewTimestamp()
Logic to be performed on a new timestamp. |
protected void |
onValidSignature(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
Logic executed on valid signature. |
void |
setResponseContentType(java.lang.String responseContentType)
The content type of the response. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int FILTER_CHAIN_ORDER
| Constructor Detail |
|---|
public UnauthenticatedRequestTokenProcessingFilter()
| Method Detail |
|---|
protected void onValidSignature(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain chain)
throws java.io.IOException
OAuthProviderProcessingFilterConsumerAuthentication.
onValidSignature in class OAuthProviderProcessingFilterrequest - The request.response - The responsechain - The filter chain.
java.io.IOException
protected void onNewTimestamp()
throws org.springframework.security.AuthenticationException
OAuthProviderProcessingFilter
onNewTimestamp in class OAuthProviderProcessingFilterorg.springframework.security.AuthenticationException - If the timestamp shouldn't be new.protected OAuthProviderToken createOAuthToken(ConsumerAuthentication authentication)
authentication - The authentication request.
public int getOrder()
public java.lang.String getResponseContentType()
public void setResponseContentType(java.lang.String responseContentType)
responseContentType - The content type of the response.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||