Class URIContentReference
java.lang.Object
org.opensaml.xmlsec.signature.support.URIContentReference
- All Implemented Interfaces:
ConfigurableContentReference,ContentReference,TransformsConfigurableContentReference
- Direct Known Subclasses:
DocumentInternalIDContentReference
public class URIContentReference
extends Object
implements ConfigurableContentReference, TransformsConfigurableContentReference
A generic content reference that uses a URI to reference the content to be signed.
The default digest algorithm used is SignatureConstants.ALGO_ID_DIGEST_SHA256.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateReference(org.apache.xml.security.signature.XMLSignature signature) Called by the signature marshaller to allow references to be added to the signature.Gets the algorithm used to digest the content.Gets the transforms applied to the content prior to digest generation.voidsetDigestAlgorithm(String newAlgorithm) Sets the algorithm used to digest the content.
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logLogger. -
referenceID
Element reference ID. -
digestAlgorithm
Algorithm used to digest the content . -
transforms
Transforms applied to the content.
-
-
Constructor Details
-
URIContentReference
Constructor. The anchor designator (#) must not be included in the ID.- Parameters:
refID- the reference ID of the element to be signed
-
-
Method Details
-
getTransforms
Gets the transforms applied to the content prior to digest generation.- Specified by:
getTransformsin interfaceTransformsConfigurableContentReference- Returns:
- the transforms applied to the content prior to digest generation
-
getDigestAlgorithm
Gets the algorithm used to digest the content..- Specified by:
getDigestAlgorithmin interfaceConfigurableContentReference- Returns:
- the algorithm used to digest the content
-
setDigestAlgorithm
Sets the algorithm used to digest the content..- Specified by:
setDigestAlgorithmin interfaceConfigurableContentReference- 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:
createReferencein interfaceContentReference- Parameters:
signature- the signature object
-