Class SAML2MetaUtils

java.lang.Object
com.sun.identity.saml2.meta.SAML2MetaUtils

@Supported public final class SAML2MetaUtils extends Object
The SAML2MetaUtils provides metadata related util methods.
  • Method Details

    • getRealmByMetaAlias

      @Supported public static String getRealmByMetaAlias(String metaAlias)
      Returns the realm by parsing the metaAlias. MetaAlias format is
       <realm>/<any string without '/'> for non-root realm or
       /<any string without '/'> for root realm.
       
      Parameters:
      metaAlias - The metaAlias.
      Returns:
      the realm associated with the metaAlias.
    • getMetaAliasByUri

      @Supported public static String getMetaAliasByUri(String uri)
      Returns metaAlias embedded in uri.
      Parameters:
      uri - The uri string.
      Returns:
      the metaAlias embedded in uri or null if not found.