Class ValidationUtils

java.lang.Object
org.projecthusky.xua.validation.ValidationUtils

public class ValidationUtils extends Object
Some utility methods for the validators.
Author:
Quentin Ligier
  • Method Details

    • extractXsValue

      public static @Nullable String extractXsValue(org.opensaml.core.xml.XMLObject xmlObject)
      Extracts the string value of an XMLObject.
      Parameters:
      xmlObject - The XML object.
      Returns:
      The String value or null.
    • trimOidUrn

      public static @Nullable String trimOidUrn(@Nullable String oid)
      Removes the OID URN prefix from a string, if any.