public class URIContentReference extends java.lang.Object implements ConfigurableContentReference
The default digest algorithm used is SignatureConstants.ALGO_ID_DIGEST_SHA256.
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
digestAlgorithm
Algorithm used to digest the content .
|
private org.slf4j.Logger |
log
Logger.
|
private java.lang.String |
referenceID
Element reference ID.
|
private java.util.List<java.lang.String> |
transforms
Transforms applied to the content.
|
| Constructor and Description |
|---|
URIContentReference(java.lang.String refID)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
createReference(org.apache.xml.security.signature.XMLSignature signature)
Called by the signature marshaller to allow references to be added to the signature.
|
java.lang.String |
getDigestAlgorithm()
Gets the algorithm used to digest the content.
|
java.util.List<java.lang.String> |
getTransforms()
Gets the transforms applied to the content prior to digest generation.
|
void |
setDigestAlgorithm(java.lang.String newAlgorithm)
Sets the algorithm used to digest the content.
|
private final org.slf4j.Logger log
private final java.lang.String referenceID
private java.lang.String digestAlgorithm
private final java.util.List<java.lang.String> transforms
public URIContentReference(@Nullable
java.lang.String refID)
refID - the reference ID of the element to be signed@Nonnull public java.util.List<java.lang.String> getTransforms()
@Nullable public java.lang.String getDigestAlgorithm()
getDigestAlgorithm in interface ConfigurableContentReferencepublic void setDigestAlgorithm(@Nonnull
java.lang.String newAlgorithm)
setDigestAlgorithm in interface ConfigurableContentReferencenewAlgorithm - the algorithm used to digest the contentpublic void createReference(@Nonnull
org.apache.xml.security.signature.XMLSignature signature)
createReference in interface ContentReferencesignature - the signature object