XML Security, 1.6

com.ibm.xml.crypto.dsig.dom
Class SignedInfoImpl

java.lang.Object
  extended by com.ibm.xml.crypto.dsig.dom.XMLStructureImpl
      extended by com.ibm.xml.crypto.dsig.dom.SignedInfoImpl
All Implemented Interfaces:
SignedInfo, XMLStructure

 class SignedInfoImpl
extends XMLStructureImpl
implements SignedInfo


Field Summary
(package private)  java.util.List content
           
 
Fields inherited from class com.ibm.xml.crypto.dsig.dom.XMLStructureImpl
afactory
 
Constructor Summary
SignedInfoImpl(AlgorithmFactory f, CanonicalizationMethod cm, SignatureMethod sm, java.util.List references, java.lang.String id)
           
 
Method Summary
 CanonicalizationMethod getCanonicalizationMethod()
          Returns the canonicalization method of this SignedInfo.
 java.io.InputStream getCanonicalizedData()
          Returns the canonicalized signed info bytes after a signing or validation operation.
 java.lang.String getId()
          Returns the optional Id attribute of this SignedInfo.
(package private)  KeySelectorResult getKeySelectorResult()
           
 java.util.List getReferences()
          Returns an unmodifiable list of one or more References.
 SignatureMethod getSignatureMethod()
          Returns the signature method of this SignedInfo.
(package private)  void setNode(org.w3c.dom.Node n)
           
(package private)  void setSignatureNode(org.w3c.dom.Node n)
          Called by XMLSignatureImpl for sign()/validate().
(package private)  byte[] sign(XMLSignContext scontext, KeyInfo ki)
          Sign ds:SignedInfo.
(package private)  boolean validate(XMLValidateContext vcontext, KeyInfo ki, byte[] sv)
           
 
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

content

java.util.List content
Constructor Detail

SignedInfoImpl

SignedInfoImpl(AlgorithmFactory f,
               CanonicalizationMethod cm,
               SignatureMethod sm,
               java.util.List references,
               java.lang.String id)
Method Detail

getId

public java.lang.String getId()
Description copied from interface: SignedInfo
Returns the optional Id attribute of this SignedInfo.

Specified by:
getId in interface SignedInfo
Returns:
the id (may be null if not specified)

getReferences

public java.util.List getReferences()
Description copied from interface: SignedInfo
Returns an unmodifiable list of one or more References.

Specified by:
getReferences in interface SignedInfo
Returns:
an unmodifiable list of one or more References

getCanonicalizationMethod

public CanonicalizationMethod getCanonicalizationMethod()
Description copied from interface: SignedInfo
Returns the canonicalization method of this SignedInfo.

Specified by:
getCanonicalizationMethod in interface SignedInfo
Returns:
the canonicalization method

getSignatureMethod

public SignatureMethod getSignatureMethod()
Description copied from interface: SignedInfo
Returns the signature method of this SignedInfo.

Specified by:
getSignatureMethod in interface SignedInfo
Returns:
the signature method

getCanonicalizedData

public java.io.InputStream getCanonicalizedData()
Description copied from interface: SignedInfo
Returns the canonicalized signed info bytes after a signing or validation operation. This method is useful for debugging.

Specified by:
getCanonicalizedData in interface SignedInfo
Returns:
an InputStream containing the canonicalized bytes, or null if this SignedInfo has not been signed or validated yet

getKeySelectorResult

KeySelectorResult getKeySelectorResult()

setSignatureNode

void setSignatureNode(org.w3c.dom.Node n)
Called by XMLSignatureImpl for sign()/validate().


setNode

void setNode(org.w3c.dom.Node n)

sign

byte[] sign(XMLSignContext scontext,
            KeyInfo ki)
      throws XMLSignatureException
Sign ds:SignedInfo. This is called after marshalling and reference digesting.

Throws:
XMLSignatureException

validate

boolean validate(XMLValidateContext vcontext,
                 KeyInfo ki,
                 byte[] sv)
           throws XMLSignatureException
Throws:
XMLSignatureException

XML Security, 1.6

Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.