Class Saml2BearerGrantHandler

  • All Implemented Interfaces:
    org.apache.cxf.rs.security.oauth2.provider.AccessTokenGrantHandler

    public class Saml2BearerGrantHandler
    extends org.apache.cxf.rs.security.oauth2.grants.AbstractGrantHandler
    The "SAML2 Bearer" grant handler
    • Field Summary

      • Fields inherited from class org.apache.cxf.rs.security.oauth2.grants.AbstractGrantHandler

        LOG
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.apache.cxf.rs.security.oauth2.common.ServerAccessToken createAccessToken​(org.apache.cxf.rs.security.oauth2.common.Client client, javax.ws.rs.core.MultivaluedMap<String,​String> params)  
      protected org.apache.cxf.rs.security.oauth2.common.UserSubject getGrantSubject​(org.apache.cxf.message.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​(org.apache.cxf.message.Message message, org.apache.wss4j.common.saml.SamlAssertionWrapper wrapper)  
      void setSecurityContextProvider​(org.apache.cxf.rs.security.saml.authorization.SecurityContextProvider p)  
      protected void validateToken​(org.apache.cxf.message.Message message, org.apache.wss4j.common.saml.SamlAssertionWrapper assertion)  
      • Methods inherited from class org.apache.cxf.rs.security.oauth2.grants.AbstractGrantHandler

        doCreateAccessToken, doCreateAccessToken, doCreateAccessToken, doCreateAccessToken, doCreateAccessToken, getApprovedScopes, getAudiences, getDataProvider, getPreAuthorizedToken, getSingleGrantType, getSupportedGrantTypes, isCanSupportPublicClients, isPartialMatchScopeValidation, setCanSupportPublicClients, setDataProvider, setPartialMatchScopeValidation
    • 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​(org.apache.cxf.rs.security.saml.authorization.SecurityContextProvider p)
      • createAccessToken

        public org.apache.cxf.rs.security.oauth2.common.ServerAccessToken createAccessToken​(org.apache.cxf.rs.security.oauth2.common.Client client,
                                                                                            javax.ws.rs.core.MultivaluedMap<String,​String> params)
                                                                                     throws org.apache.cxf.rs.security.oauth2.provider.OAuthServiceException
        Throws:
        org.apache.cxf.rs.security.oauth2.provider.OAuthServiceException
      • getGrantSubject

        protected org.apache.cxf.rs.security.oauth2.common.UserSubject getGrantSubject​(org.apache.cxf.message.Message message,
                                                                                       org.apache.wss4j.common.saml.SamlAssertionWrapper wrapper)
      • validateToken

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

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