Class TokenEndpoint.TokenExchangeSamlProtocol

  • All Implemented Interfaces:
    org.keycloak.protocol.LoginProtocol, org.keycloak.provider.Provider
    Enclosing class:
    TokenEndpoint

    public static class TokenEndpoint.TokenExchangeSamlProtocol
    extends SamlProtocol
    • Constructor Detail

      • TokenExchangeSamlProtocol

        public TokenExchangeSamlProtocol​(SamlClient samlClient)
    • Method Detail

      • buildAuthenticatedResponse

        protected javax.ws.rs.core.Response buildAuthenticatedResponse​(org.keycloak.models.AuthenticatedClientSessionModel clientSession,
                                                                       String redirectUri,
                                                                       Document samlDocument,
                                                                       JaxrsSAML2BindingBuilder bindingBuilder)
                                                                throws org.keycloak.saml.common.exceptions.ConfigurationException,
                                                                       org.keycloak.saml.common.exceptions.ProcessingException,
                                                                       IOException
        Overrides:
        buildAuthenticatedResponse in class SamlProtocol
        Throws:
        org.keycloak.saml.common.exceptions.ConfigurationException
        org.keycloak.saml.common.exceptions.ProcessingException
        IOException
      • buildErrorResponse

        protected javax.ws.rs.core.Response buildErrorResponse​(boolean isPostBinding,
                                                               String destination,
                                                               JaxrsSAML2BindingBuilder binding,
                                                               Document document)
                                                        throws org.keycloak.saml.common.exceptions.ConfigurationException,
                                                               org.keycloak.saml.common.exceptions.ProcessingException,
                                                               IOException
        Overrides:
        buildErrorResponse in class SamlProtocol
        Throws:
        org.keycloak.saml.common.exceptions.ConfigurationException
        org.keycloak.saml.common.exceptions.ProcessingException
        IOException