Class SAMLObjectContentReference

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Class logger.
      • signableObject

        @Nonnull
        private final SignableSAMLObject signableObject
        SAMLObject this reference refers to.
      • digestAlgorithm

        @Nonnull
        @NotEmpty
        private String digestAlgorithm
        Algorithm used to digest the content.
    • Constructor Detail

      • SAMLObjectContentReference

        public SAMLObjectContentReference​(@Nonnull
                                          SignableSAMLObject newSignableObject)
        Constructor.
        Parameters:
        newSignableObject - the SAMLObject this reference refers to
    • Method Detail

      • createReference

        public void createReference​(@Nonnull
                                    org.apache.xml.security.signature.XMLSignature signature)
        Specified by:
        createReference in interface ContentReference
      • processExclusiveTransform

        private void processExclusiveTransform​(@Nonnull
                                               org.apache.xml.security.signature.XMLSignature signature,
                                               @Nonnull
                                               org.apache.xml.security.transforms.Transform transform)
        Populate the inclusive namspace prefixes on the specified Apache (exclusive) transform object.
        Parameters:
        signature - the Apache XMLSignature object
        transform - the Apache Transform object representing an exclusive transform
      • populateNamespacePrefixes

        private void populateNamespacePrefixes​(@Nonnull @NonnullElements
                                               Set<String> namespacePrefixes,
                                               @Nonnull
                                               XMLObject signatureContent)
        Populates the given set with the non-visibly used namespace prefixes used by the given XMLObject and all of its descendants, as determined by the signature content object's namespace manager.
        Parameters:
        namespacePrefixes - the namespace prefix set to be populated
        signatureContent - the XMLObject whose namespace prefixes will be used to populate the set