Class URIContentReference

    • Field Detail

      • log

        private final org.slf4j.Logger log
        Logger.
      • referenceID

        private final String referenceID
        Element reference ID.
      • digestAlgorithm

        private String digestAlgorithm
        Algorithm used to digest the content .
      • transforms

        private final List<String> transforms
        Transforms applied to the content.
    • Constructor Detail

      • URIContentReference

        public URIContentReference​(@Nullable
                                   String refID)
        Constructor. The anchor designator (#) must not be included in the ID.
        Parameters:
        refID - the reference ID of the element to be signed
    • Method Detail

      • setDigestAlgorithm

        public void setDigestAlgorithm​(@Nonnull
                                       String newAlgorithm)
        Sets the algorithm used to digest the content..
        Specified by:
        setDigestAlgorithm in interface ConfigurableContentReference
        Parameters:
        newAlgorithm - the algorithm used to digest the content
      • createReference

        public void createReference​(@Nonnull
                                    org.apache.xml.security.signature.XMLSignature signature)
        Called by the signature marshaller to allow references to be added to the signature.
        Specified by:
        createReference in interface ContentReference
        Parameters:
        signature - the signature object