Class HTTPArtifactEncoder

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • defaultArtifactType

        @Nonnull
        @NotEmpty
        private byte[] defaultArtifactType
        Default artifact type to use when encoding messages.
    • Constructor Detail

      • HTTPArtifactEncoder

        public HTTPArtifactEncoder()
        Constructor.
    • Method Detail

      • getBindingURI

        public String getBindingURI()
        Gets the SAML binding URI supported by this encoder.
        Returns:
        SAML binding URI supported by this encoder
      • setArtifactMap

        public void setArtifactMap​(@Nonnull
                                   SAMLArtifactMap newArtifactMap)
        Set the SAML artifact map to use.
        Parameters:
        newArtifactMap - the new artifactMap
      • getOutboundMessageIssuer

        @Nullable
        private String getOutboundMessageIssuer​(@Nonnull
                                                MessageContext messageContext)
        Get the outbound message issuer.
        Parameters:
        messageContext - the message context
        Returns:
        the outbound message issuer
      • getInboundMessageIssuer

        @Nullable
        private String getInboundMessageIssuer​(@Nonnull
                                               MessageContext messageContext)
        Get the requester.
        Parameters:
        messageContext - the message context
        Returns:
        the requester
      • storeSAMLArtifactType

        private void storeSAMLArtifactType​(@Nonnull
                                           MessageContext messageContext,
                                           @Nonnull @NotEmpty
                                           byte[] artifactType)
        Store the SAML artifact type in the message context.
        Parameters:
        messageContext - the message context
        artifactType - the artifact type to store
      • getSAMLArtifactType

        @Nullable
        private byte[] getSAMLArtifactType​(@Nonnull
                                           MessageContext messageContext)
        Get the SAML artifact type from the message context.
        Parameters:
        messageContext - the message context
        Returns:
        the artifact type