|
XML Security, 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.xml.crypto.dsig.dom.XMLStructureImpl
com.ibm.xml.crypto.dsig.dom.URIReferenceImpl
com.ibm.xml.crypto.dsig.dom.ReferenceImpl
class ReferenceImpl
Field Summary | |
---|---|
(package private) static java.lang.String |
PROP_CACHEREFERENCE
|
(package private) java.util.List |
transforms
|
Fields inherited from class com.ibm.xml.crypto.dsig.dom.URIReferenceImpl |
---|
signatureNode |
Fields inherited from class com.ibm.xml.crypto.dsig.dom.XMLStructureImpl |
---|
afactory |
Constructor Summary | |
---|---|
ReferenceImpl(AlgorithmFactory f,
java.lang.String uri,
DigestMethod dm,
java.util.List applied,
Data result,
java.util.List transforms,
java.lang.String type,
java.lang.String id,
byte[] digestValue)
|
Method Summary | |
---|---|
byte[] |
getCalculatedDigestValue()
Returns the calculated digest value of this Reference
after a validation operation. |
Data |
getDereferencedData()
Returns the dereferenced data, if reference caching is enabled. |
java.io.InputStream |
getDigestInputStream()
Returns the pre-digested input stream, if reference caching is enabled. |
DigestMethod |
getDigestMethod()
Returns the digest method of this Reference . |
byte[] |
getDigestValue()
Return the DigestValue in a tree. |
java.lang.String |
getId()
Returns the optional Id attribute of this
Reference , which permits this reference to be
referenced from elsewhere. |
java.util.List |
getTransforms()
Returns an unmodifiable
list of Transform s that are contained in this
Reference . |
(package private) void |
setDigestValue(byte[] value)
Called in sign() or in unmarshall(). |
(package private) void |
setDigestValueNode(org.w3c.dom.Node node)
Called by Marshalling. |
(package private) void |
sign(XMLSignContext scontext)
Called by XMLSignatureImpl.sign() |
boolean |
validate(XMLValidateContext vcontext)
Validates this reference. |
Methods inherited from class com.ibm.xml.crypto.dsig.dom.URIReferenceImpl |
---|
getFactory, getHere, getType, getURI, setHere, setSignatureNode |
Methods inherited from class com.ibm.xml.crypto.dsig.dom.XMLStructureImpl |
---|
isFeatureSupported |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.xml.crypto.URIReference |
---|
getType, getURI |
Methods inherited from interface javax.xml.crypto.XMLStructure |
---|
isFeatureSupported |
Field Detail |
---|
static java.lang.String PROP_CACHEREFERENCE
java.util.List transforms
Constructor Detail |
---|
ReferenceImpl(AlgorithmFactory f, java.lang.String uri, DigestMethod dm, java.util.List applied, Data result, java.util.List transforms, java.lang.String type, java.lang.String id, byte[] digestValue)
Method Detail |
---|
public DigestMethod getDigestMethod()
Reference
Reference
.
getDigestMethod
in interface Reference
public java.lang.String getId()
Reference
Id
attribute of this
Reference
, which permits this reference to be
referenced from elsewhere.
getId
in interface Reference
Id
attribute (may be null
if not
specified)public java.util.List getTransforms()
Reference
unmodifiable
list
of Transform
s that are contained in this
Reference
.
getTransforms
in interface Reference
Transform
s
(may be empty but never null
)void setDigestValue(byte[] value)
d
- may be nulldinput
- may be nullvoid setDigestValueNode(org.w3c.dom.Node node)
public byte[] getDigestValue()
getDigestValue
in interface Reference
null
if this reference has
not been digested yet. Each invocation of this method returns a new
clone to protect against subsequent modification.public byte[] getCalculatedDigestValue()
Reference
Reference
after a validation operation. This method is useful for debugging if
the reference fails to validate.
getCalculatedDigestValue
in interface Reference
null
if this
reference has not been validated yet. Each invocation of this method
returns a new clone to protect against subsequent modification.public Data getDereferencedData()
Reference
getDereferencedData
in interface Reference
null
if reference
caching is not enabled or this reference has not been generated or
validatedpublic java.io.InputStream getDigestInputStream()
Reference
getDigestInputStream
in interface Reference
null
if reference caching is not enabled or this
reference has not been generated or validatedvoid sign(XMLSignContext scontext) throws XMLSignatureException
XMLSignatureException
public boolean validate(XMLValidateContext vcontext) throws XMLSignatureException
Reference
This method only validates the reference the first time it is invoked. On subsequent invocations, it returns a cached result.
validate
in interface Reference
vcontext
- the validating context
true
if this reference was validated successfully;
false
otherwise
XMLSignatureException
- if an unexpected exception occurs while
validating the reference
|
XML Security, 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |