|
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.XMLSignatureImpl
class XMLSignatureImpl
Nested Class Summary | |
---|---|
(package private) static class |
XMLSignatureImpl.SignatureValueImpl
|
Nested classes/interfaces inherited from interface javax.xml.crypto.dsig.XMLSignature |
---|
XMLSignature.SignatureValue |
Field Summary | |
---|---|
(package private) java.util.List |
objects
|
Fields inherited from class com.ibm.xml.crypto.dsig.dom.XMLStructureImpl |
---|
afactory |
Fields inherited from interface javax.xml.crypto.dsig.XMLSignature |
---|
XMLNS |
Constructor Summary | |
---|---|
XMLSignatureImpl(AlgorithmFactory f,
SignedInfo si,
KeyInfo ki,
java.util.List objs,
java.lang.String id,
java.lang.String svi)
|
Method Summary | |
---|---|
java.lang.String |
getId()
Returns the optional Id of this XMLSignature . |
KeyInfo |
getKeyInfo()
Returns the key info of this XMLSignature . |
KeySelectorResult |
getKeySelectorResult()
Returns the result of the KeySelector , if specified, after
this XMLSignature has been signed or validated. |
java.util.List |
getObjects()
Returns an unmodifiable
list of XMLObject s contained in this XMLSignature . |
XMLSignature.SignatureValue |
getSignatureValue()
Returns the signature value of this XMLSignature . |
SignedInfo |
getSignedInfo()
Returns the signed info of this XMLSignature . |
(package private) void |
setNode(org.w3c.dom.Node n)
Called by Marshalling/Unmarshalling. |
(package private) void |
setSignatureValue(byte[] sv)
|
(package private) void |
setSignatureValueNode(org.w3c.dom.Node n)
Called by Marshalling. |
void |
sign(XMLSignContext scontext)
Signs this XMLSignature . |
boolean |
validate(XMLValidateContext vcontext)
Validates the signature according to the core validation processing rules. |
(package private) boolean |
validateSignedInfo(XMLValidateContext vcontext)
|
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.XMLStructure |
---|
isFeatureSupported |
Field Detail |
---|
java.util.List objects
Constructor Detail |
---|
XMLSignatureImpl(AlgorithmFactory f, SignedInfo si, KeyInfo ki, java.util.List objs, java.lang.String id, java.lang.String svi)
Method Detail |
---|
public KeyInfo getKeyInfo()
XMLSignature
XMLSignature
.
getKeyInfo
in interface XMLSignature
null
if not specified)public java.lang.String getId()
XMLSignature
XMLSignature
.
getId
in interface XMLSignature
null
if not specified)public java.util.List getObjects()
XMLSignature
unmodifiable
list
of XMLObject
s contained in this XMLSignature
.
getObjects
in interface XMLSignature
XMLObject
s (may be empty
but never null
)public KeySelectorResult getKeySelectorResult()
XMLSignature
KeySelector
, if specified, after
this XMLSignature
has been signed or validated.
getKeySelectorResult
in interface XMLSignature
null
if a key
selector has not been specified or this XMLSignature
has not been signed or validatedpublic XMLSignature.SignatureValue getSignatureValue()
XMLSignature
XMLSignature
.
getSignatureValue
in interface XMLSignature
void setSignatureValue(byte[] sv)
void setNode(org.w3c.dom.Node n)
void setSignatureValueNode(org.w3c.dom.Node n)
public SignedInfo getSignedInfo()
XMLSignature
XMLSignature
.
getSignedInfo
in interface XMLSignature
null
)public void sign(XMLSignContext scontext) throws MarshalException, XMLSignatureException
XMLSignature
XMLSignature
.
If this method throws an exception, this XMLSignature
and
the signContext
parameter will be left in the state that
it was in prior to the invocation.
sign
in interface XMLSignature
scontext
- the signing context
MarshalException
- if an exception occurs while marshalling
XMLSignatureException
- if an unexpected exception occurs while
generating the signaturepublic boolean validate(XMLValidateContext vcontext) throws XMLSignatureException
XMLSignature
XMLSignature
using the
location information specified in the context.
This method only validates the signature the first time it is invoked. On subsequent invocations, it returns a cached result.
validate
in interface XMLSignature
vcontext
- the validating context
true
if the signature passed core validation,
otherwise false
XMLSignatureException
- if an unexpected error occurs during
validation that prevented the validation operation from completingboolean validateSignedInfo(XMLValidateContext vcontext) throws XMLSignatureException
XMLSignatureException
|
XML Security, 1.6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |