public final class DOMReference extends DOMStructure implements Reference, DOMURIReference
Modifier and Type | Field and Description |
---|---|
static int |
MAXIMUM_TRANSFORM_COUNT
The maximum number of transforms per reference, if secure validation is enabled.
|
Constructor and Description |
---|
DOMReference(Element refElem,
XMLCryptoContext context,
Provider provider)
Creates a
DOMReference from an element. |
DOMReference(String uri,
String type,
DigestMethod dm,
List<? extends Transform> appliedTransforms,
Data result,
List<? extends Transform> transforms,
String id,
byte[] digestValue,
Provider provider) |
DOMReference(String uri,
String type,
DigestMethod dm,
List<? extends Transform> appliedTransforms,
Data result,
List<? extends Transform> transforms,
String id,
Provider provider) |
DOMReference(String uri,
String type,
DigestMethod dm,
List<? extends Transform> transforms,
String id,
Provider provider)
Creates a
Reference from the specified parameters. |
Modifier and Type | Method and Description |
---|---|
void |
digest(XMLSignContext signContext) |
boolean |
equals(Object o) |
byte[] |
getCalculatedDigestValue() |
Data |
getDereferencedData() |
InputStream |
getDigestInputStream() |
DigestMethod |
getDigestMethod() |
byte[] |
getDigestValue() |
Node |
getHere() |
String |
getId() |
List<Transform> |
getTransforms() |
String |
getType() |
String |
getURI() |
int |
hashCode() |
void |
marshal(Node parent,
String dsPrefix,
DOMCryptoContext context) |
boolean |
validate(XMLValidateContext validateContext) |
equalsContent, isFeatureSupported
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
isFeatureSupported
public static final int MAXIMUM_TRANSFORM_COUNT
public DOMReference(String uri, String type, DigestMethod dm, List<? extends Transform> transforms, String id, Provider provider)
Reference
from the specified parameters.uri
- the URI (may be null)type
- the type (may be null)dm
- the digest methodtransforms
- a list of Transform
s. The list
is defensively copied to protect against subsequent modification.
May be null
or empty.id
- the reference ID (may be null
)NullPointerException
- if dm
is null
ClassCastException
- if any of the transforms
are
not of type Transform
public DOMReference(String uri, String type, DigestMethod dm, List<? extends Transform> appliedTransforms, Data result, List<? extends Transform> transforms, String id, Provider provider)
public DOMReference(String uri, String type, DigestMethod dm, List<? extends Transform> appliedTransforms, Data result, List<? extends Transform> transforms, String id, byte[] digestValue, Provider provider)
public DOMReference(Element refElem, XMLCryptoContext context, Provider provider) throws MarshalException
DOMReference
from an element.refElem
- a Reference elementMarshalException
public DigestMethod getDigestMethod()
getDigestMethod
in interface Reference
public String getURI()
getURI
in interface URIReference
public String getType()
getType
in interface URIReference
public List<Transform> getTransforms()
getTransforms
in interface Reference
public byte[] getDigestValue()
getDigestValue
in interface Reference
public byte[] getCalculatedDigestValue()
getCalculatedDigestValue
in interface Reference
public void marshal(Node parent, String dsPrefix, DOMCryptoContext context) throws MarshalException
marshal
in class DOMStructure
MarshalException
public void digest(XMLSignContext signContext) throws XMLSignatureException
XMLSignatureException
public boolean validate(XMLValidateContext validateContext) throws XMLSignatureException
validate
in interface Reference
XMLSignatureException
public Data getDereferencedData()
getDereferencedData
in interface Reference
public InputStream getDigestInputStream()
getDigestInputStream
in interface Reference
public Node getHere()
getHere
in interface DOMURIReference
Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.