Apache CXF API

org.apache.cxf.rs.security.oauth2.grants.saml
Class Saml2BearerGrantHandler

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.grants.AbstractGrantHandler
      extended by org.apache.cxf.rs.security.oauth2.grants.saml.Saml2BearerGrantHandler
All Implemented Interfaces:
AccessTokenGrantHandler

public class Saml2BearerGrantHandler
extends AbstractGrantHandler

The "SAML2 Bearer" grant handler


Constructor Summary
Saml2BearerGrantHandler()
           
 
Method Summary
 ServerAccessToken createAccessToken(Client client, javax.ws.rs.core.MultivaluedMap<String,String> params)
           
protected  UserSubject getGrantSubject(Message message, org.apache.wss4j.common.saml.SamlAssertionWrapper wrapper)
           
protected  Element readToken(InputStream tokenStream)
           
 void setSamlOAuthValidator(SamlOAuthValidator validator)
           
 void setSamlValidator(org.apache.wss4j.dom.validate.Validator validator)
           
protected  void setSecurityContext(Message message, org.apache.wss4j.common.saml.SamlAssertionWrapper wrapper)
           
 void setSecurityContextProvider(SecurityContextProvider p)
           
protected  void validateToken(Message message, org.apache.wss4j.common.saml.SamlAssertionWrapper assertion)
           
 
Methods inherited from class org.apache.cxf.rs.security.oauth2.grants.AbstractGrantHandler
checkIfGrantSupported, doCreateAccessToken, doCreateAccessToken, doCreateAccessToken, doCreateAccessToken, doCreateAccessToken, getDataProvider, getSupportedGrantTypes, isCanSupportPublicClients, setCanSupportPublicClients, setDataProvider, setPartialMatchScopeValidation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Saml2BearerGrantHandler

public Saml2BearerGrantHandler()
Method Detail

setSamlValidator

public void setSamlValidator(org.apache.wss4j.dom.validate.Validator validator)

setSamlOAuthValidator

public void setSamlOAuthValidator(SamlOAuthValidator validator)

setSecurityContextProvider

public void setSecurityContextProvider(SecurityContextProvider p)

createAccessToken

public ServerAccessToken createAccessToken(Client client,
                                           javax.ws.rs.core.MultivaluedMap<String,String> params)
                                    throws OAuthServiceException
Throws:
OAuthServiceException

getGrantSubject

protected UserSubject getGrantSubject(Message message,
                                      org.apache.wss4j.common.saml.SamlAssertionWrapper wrapper)

readToken

protected Element readToken(InputStream tokenStream)

validateToken

protected void validateToken(Message message,
                             org.apache.wss4j.common.saml.SamlAssertionWrapper assertion)

setSecurityContext

protected void setSecurityContext(Message message,
                                  org.apache.wss4j.common.saml.SamlAssertionWrapper wrapper)

Apache CXF API

Apache CXF