Class SamlUtil

java.lang.Object
com.linecorp.armeria.server.saml.SamlUtil

public final class SamlUtil extends Object
A utility class which helps a user to easily handle a SAML message.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable org.opensaml.saml.saml2.core.NameID
    getNameId(org.opensaml.saml.saml2.core.Response response, SamlNameIdFormat expectedFormat)
    Returns a NameID that its name format equals to the specified expectedFormat, from the Response.
    static @Nullable org.opensaml.saml.saml2.core.NameID
    getNameId(org.opensaml.saml.saml2.core.Response response, Predicate<org.opensaml.saml.saml2.core.NameID> filter)
    Returns a NameID which is matched to the specified filter from the Response.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getNameId

      @Nullable public static @Nullable org.opensaml.saml.saml2.core.NameID getNameId(org.opensaml.saml.saml2.core.Response response, SamlNameIdFormat expectedFormat)
      Returns a NameID that its name format equals to the specified expectedFormat, from the Response.
    • getNameId

      @Nullable public static @Nullable org.opensaml.saml.saml2.core.NameID getNameId(org.opensaml.saml.saml2.core.Response response, Predicate<org.opensaml.saml.saml2.core.NameID> filter)
      Returns a NameID which is matched to the specified filter from the Response.