Package org.projecthusky.xua.validation
Class ValidationUtils
java.lang.Object
org.projecthusky.xua.validation.ValidationUtils
Some utility methods for the validators.
- Author:
- Quentin Ligier
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable String
extractXsValue
(org.opensaml.core.xml.XMLObject xmlObject) Extracts the string value of an XMLObject.static @Nullable String
trimOidUrn
(@Nullable String oid) Removes the OID URN prefix from a string, if any.
-
Method Details
-
extractXsValue
Extracts the string value of an XMLObject.- Parameters:
xmlObject
- The XML object.- Returns:
- The String value or
null
.
-
trimOidUrn
Removes the OID URN prefix from a string, if any.
-