public class URIContentReference extends Object implements ConfigurableContentReference
The default digest algorithm used is SignatureConstants.ALGO_ID_DIGEST_SHA256
.
Constructor and Description |
---|
URIContentReference(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.
|
String |
getDigestAlgorithm()
Gets the algorithm used to digest the content.
|
List<String> |
getTransforms()
Gets the transforms applied to the content prior to digest generation.
|
void |
setDigestAlgorithm(String newAlgorithm)
Sets the algorithm used to digest the content.
|
@Nonnull public List<String> getTransforms()
@Nullable public String getDigestAlgorithm()
getDigestAlgorithm
in interface ConfigurableContentReference
public void setDigestAlgorithm(@Nonnull String newAlgorithm)
setDigestAlgorithm
in interface ConfigurableContentReference
newAlgorithm
- the algorithm used to digest the contentpublic void createReference(@Nonnull org.apache.xml.security.signature.XMLSignature signature)
createReference
in interface ContentReference
signature
- the signature objectCopyright © 2016. All rights reserved.