Class ArtifactResponseUtil

java.lang.Object
org.keycloak.saml.processing.core.saml.v2.util.ArtifactResponseUtil

public final class ArtifactResponseUtil extends Object
Utility class to manipulate SAML ArtifactResponse and embedded Response.
Author:
Thibault Morin (https://tmorin.github.io)
  • Method Details

    • convertResponseToString

      public static Optional<String> convertResponseToString(Document document)
      Convert the Document to a string.

      The Response shall match the namespace "urn:oasis:names:tc:SAML:2.0:protocol" and the element "Response".

      Parameters:
      document - the Document to convert
      Returns:
      the Document as a string