Package org.opensaml.saml.common
Class SAMLObjectSupport
- java.lang.Object
-
- org.opensaml.saml.common.SAMLObjectSupport
-
public final class SAMLObjectSupport extends Object
A helper class for working with SAMLObjects.
-
-
Constructor Summary
Constructors Modifier Constructor Description private
SAMLObjectSupport()
Constructor.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
declareNonVisibleNamespaces(SignableSAMLObject signableObject)
Examines theSignableSAMLObject
for the need to declare non-visible namespaces before marshalling and signing, and if required, performs the declarations.private static org.slf4j.Logger
getLogger()
Get an SLF4J Logger.
-
-
-
Method Detail
-
declareNonVisibleNamespaces
public static void declareNonVisibleNamespaces(@Nonnull SignableSAMLObject signableObject)
Examines theSignableSAMLObject
for the need to declare non-visible namespaces before marshalling and signing, and if required, performs the declarations.If the object does not already have a cached DOM, does have a signature attached, and the signature contains a
SAMLObjectContentReference
with a transform of eitherSignatureConstants.TRANSFORM_C14N_EXCL_OMIT_COMMENTS
orSignatureConstants.TRANSFORM_C14N_EXCL_WITH_COMMENTS
, it declares on the object all non-visible namespaces as determined byNamespaceManager.getNonVisibleNamespaces()
.- Parameters:
signableObject
- the signable SAML object to evaluate
-
getLogger
@Nonnull private static org.slf4j.Logger getLogger()
Get an SLF4J Logger.- Returns:
- a Logger instance
-
-