|
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 XMLObjects 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()
XMLSignatureXMLSignature.
getKeyInfo in interface XMLSignaturenull if not specified)public java.lang.String getId()
XMLSignatureXMLSignature.
getId in interface XMLSignaturenull if not specified)public java.util.List getObjects()
XMLSignatureunmodifiable
list of XMLObjects contained in this XMLSignature.
getObjects in interface XMLSignatureXMLObjects (may be empty
but never null)public KeySelectorResult getKeySelectorResult()
XMLSignatureKeySelector, if specified, after
this XMLSignature has been signed or validated.
getKeySelectorResult in interface XMLSignaturenull if a key
selector has not been specified or this XMLSignature
has not been signed or validatedpublic XMLSignature.SignatureValue getSignatureValue()
XMLSignatureXMLSignature.
getSignatureValue in interface XMLSignaturevoid setSignatureValue(byte[] sv)
void setNode(org.w3c.dom.Node n)
void setSignatureValueNode(org.w3c.dom.Node n)
public SignedInfo getSignedInfo()
XMLSignatureXMLSignature.
getSignedInfo in interface XMLSignaturenull)
public void sign(XMLSignContext scontext)
throws MarshalException,
XMLSignatureException
XMLSignatureXMLSignature.
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 XMLSignaturescontext - the signing context
MarshalException - if an exception occurs while marshalling
XMLSignatureException - if an unexpected exception occurs while
generating the signature
public boolean validate(XMLValidateContext vcontext)
throws XMLSignatureException
XMLSignatureXMLSignature 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 XMLSignaturevcontext - 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 completing
boolean 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 | |||||||||