Class IdpMetadata

    • Method Detail

      • url

        public final String url()

        The URL of the location containing the IdP metadata.

        Returns:
        The URL of the location containing the IdP metadata.
      • xml

        public final String xml()

        The full IdP metadata, in XML format.

        Returns:
        The full IdP metadata, in XML format.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)
      • fromUrl

        public static IdpMetadata fromUrl​(String url)
        Create an instance of this class with url() initialized to the given value.

        The URL of the location containing the IdP metadata.

        Parameters:
        url - The URL of the location containing the IdP metadata.
      • fromXml

        public static IdpMetadata fromXml​(String xml)
        Create an instance of this class with xml() initialized to the given value.

        The full IdP metadata, in XML format.

        Parameters:
        xml - The full IdP metadata, in XML format.