org.apache.cxf.rs.security.oauth2.filters
Class OAuthRequestInterceptor

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.services.AbstractAccessTokenValidator
      extended by org.apache.cxf.rs.security.oauth2.filters.OAuthRequestFilter
          extended by org.apache.cxf.rs.security.oauth2.filters.OAuthRequestInterceptor
All Implemented Interfaces:
javax.ws.rs.container.ContainerRequestFilter, org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>, org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

public class OAuthRequestInterceptor
extends OAuthRequestFilter
implements org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>


Field Summary
 
Fields inherited from class org.apache.cxf.rs.security.oauth2.services.AbstractAccessTokenValidator
realm, supportedSchemes
 
Constructor Summary
OAuthRequestInterceptor()
           
 
Method Summary
 Collection<org.apache.cxf.phase.PhaseInterceptor<? extends org.apache.cxf.message.Message>> getAdditionalInterceptors()
           
 Set<String> getAfter()
           
protected  String[] getAuthorizationParts(org.apache.cxf.message.Message message)
           
 Set<String> getBefore()
           
 String getId()
           
 String getPhase()
           
 void handleFault(org.apache.cxf.message.Message message)
           
 void handleMessage(org.apache.cxf.message.Message message)
           
 
Methods inherited from class org.apache.cxf.rs.security.oauth2.filters.OAuthRequestFilter
checkHttpVerb, checkRequestURI, createSecurityContext, filter, getTokenFromFormData, isCorsRequest, setAudienceIsEndpointAddress, setCheckFormData, setUseUserSubject, validateAudience, validateRequest
 
Methods inherited from class org.apache.cxf.rs.security.oauth2.services.AbstractAccessTokenValidator
findTokenValidator, getAccessTokenValidation, getAudiences, getMessageContext, setAudiences, setDataProvider, setMessageContext, setRealm, setTokenValidator, setTokenValidators
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuthRequestInterceptor

public OAuthRequestInterceptor()
Method Detail

handleMessage

public void handleMessage(org.apache.cxf.message.Message message)
                   throws org.apache.cxf.interceptor.Fault
Specified by:
handleMessage in interface org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>
Throws:
org.apache.cxf.interceptor.Fault

getAuthorizationParts

protected String[] getAuthorizationParts(org.apache.cxf.message.Message message)
Overrides:
getAuthorizationParts in class OAuthRequestFilter

getAdditionalInterceptors

public Collection<org.apache.cxf.phase.PhaseInterceptor<? extends org.apache.cxf.message.Message>> getAdditionalInterceptors()
Specified by:
getAdditionalInterceptors in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

getAfter

public Set<String> getAfter()
Specified by:
getAfter in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

getBefore

public Set<String> getBefore()
Specified by:
getBefore in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

getId

public String getId()
Specified by:
getId in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

getPhase

public String getPhase()
Specified by:
getPhase in interface org.apache.cxf.phase.PhaseInterceptor<org.apache.cxf.message.Message>

handleFault

public void handleFault(org.apache.cxf.message.Message message)
Specified by:
handleFault in interface org.apache.cxf.interceptor.Interceptor<org.apache.cxf.message.Message>


Apache CXF