XML Security, 1.6

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

java.lang.Object
  extended by com.ibm.xml.crypto.dsig.dom.Marshalling
All Implemented Interfaces:
Constants

public class Marshalling
extends java.lang.Object
implements Constants

$Id: Marshalling.java,v 1.16 2005/05/18 04:18:29 kent Exp $


Field Summary
(package private)  int MAX_CACHE
           
 
Fields inherited from interface com.ibm.xml.crypto.dsig.Constants
ALG_ECDSA_SHA1, ALG_ESIGN_SHA1, ALG_GSSMIC, ALG_HMAC_MD5, ALG_HMAC_RIPEMD160, ALG_HMAC_SHA1, ALG_HMAC_SHA224, ALG_HMAC_SHA246, ALG_HMAC_SHA384, ALG_HMAC_SHA512, ALG_MD5, ALG_RSA_MD5, ALG_RSA_RIPEMD160, ALG_RSA_SHA256, ALG_RSA_SHA384, ALG_RSA_SHA512, ALG_SHA384, AT_ALGORITHM, AT_ENCODING, AT_ID, AT_MIMETYPE, AT_PREFIXLIST, AT_TARGET, AT_TYPE, AT_URI, AT_URN, AT_VALUE, AT_XPATH2_FILTER, EL_C14NMETHOD, EL_DIGESTMETHOD, EL_DIGESTVALUE, EL_DOMAINPARAMETERS, EL_DSA_G, EL_DSA_J, EL_DSA_P, EL_DSA_PGENCOUNTER, EL_DSA_Q, EL_DSA_SEED, EL_DSA_Y, EL_DSAKEYVALUE, EL_ECDSA_PUBLICKEY, EL_ECDSA_X, EL_ECDSA_Y, EL_ECDSAKEYVALUE, EL_EXPONENT, EL_HMACOUTPUTLENGTH, EL_INCLUSIVENAMESPACES, EL_KEYINFO, EL_KEYNAME, EL_KEYVALUE, EL_MANIFEST, EL_MODULUS, EL_NAMEDCURVE, EL_OBJECT, EL_PGPDATA, EL_PGPKEYID, EL_PGPKEYPACKET, EL_REFERENCE, EL_RETRIEVALMETHOD, EL_RSAKEYVALUE, EL_SIGNATURE, EL_SIGNATUREMETHOD, EL_SIGNATUREPROPERTIES, EL_SIGNATUREPROPERTY, EL_SIGNATUREVALUE, EL_SIGNEDINFO, EL_STYLESHEET, EL_TRANSFORM, EL_TRANSFORMS, EL_X509CERTIFICATE, EL_X509CRL, EL_X509DATA, EL_X509ISSUERNAME, EL_X509ISSUERSERIAL, EL_X509SERIALNUMBER, EL_X509SKI, EL_X509SUBJECTNAME, EL_XPATH, EL_XPATH2_XPATH, NS_DSIG, NS_DSIG_MORE, NS_GSS, NS_INCLUSIVENAMESPACES, NS_XML, NS_XMLNS, NS_XPATH2, NS_XSLT, PREFIX_DSIG, PREFIX_INCLUSIVE, PREFIX_XPATH2, PROP_EMPTY_DIGEST, PROP_INDENT, PROP_INDENT_START, PROP_INDENT_UNIT, XPATH2_FILTER_INTERSECT, XPATH2_FILTER_SUBTRACT, XPATH2_FILTER_UNION
 
Constructor Summary
Marshalling(DOMSignContext dscontext, AlgorithmFactory af)
           
Marshalling(org.w3c.dom.Node parent, DOMCryptoContext dcontext, AlgorithmFactory af)
           
 
Method Summary
static org.w3c.dom.Element createElement(DOMCryptoContext c, org.w3c.dom.Document f, java.lang.String namespace, java.lang.String local, boolean nsdecl)
           
(package private)  org.w3c.dom.Element createElement(java.lang.String namespace, java.lang.String local, boolean nsdecl)
           
 void decrement()
           
 boolean doIndentation()
           
 int getLevel()
           
 int getStart()
           
 java.lang.String getText()
           
 int getUnit()
           
 void increment()
           
(package private)  void indent(org.w3c.dom.Node parent)
           
(package private) static void insertBase64Binary(org.w3c.dom.Node parent, byte[] data)
           
(package private)  org.w3c.dom.Node marshalAny(XMLStructure xs)
           
(package private)  org.w3c.dom.Node marshalDigestMethod(DigestMethod dm)
           
(package private)  org.w3c.dom.Node marshalKeyInfo(KeyInfo ki)
           
(package private) static org.w3c.dom.Node marshalKeyInfo(KeyInfo ki, org.w3c.dom.Node parent, DOMCryptoContext context, AlgorithmFactory afactory)
          Called by KeyInfoImpl.marshal()
(package private)  org.w3c.dom.Node marshalKeyName(KeyName kname)
           
(package private)  org.w3c.dom.Node marshalKeyValue(KeyValue kvalue)
           
(package private)  org.w3c.dom.Node marshalManifest(Manifest manifest)
           
(package private)  org.w3c.dom.Node marshalObject(XMLObject obj)
           
(package private)  org.w3c.dom.Node marshalOther(DOMStructure ds)
           
(package private)  org.w3c.dom.Node marshalPGPData(PGPData pgp)
           
(package private)  org.w3c.dom.Node marshalReference(Reference ref)
           
(package private)  org.w3c.dom.Node marshalRetrievalMethod(RetrievalMethod rm)
           
(package private)  org.w3c.dom.Node marshalSignature(XMLSignature sig)
           
(package private) static org.w3c.dom.Node marshalSignature(XMLSignature sig, DOMSignContext context, AlgorithmFactory af)
          Called by XMLSignatureImpl.sign().
(package private)  org.w3c.dom.Node marshalSignatureMethod(SignatureMethod sm)
           
(package private)  org.w3c.dom.Node marshalSignatureProperties(SignatureProperties props)
           
(package private)  org.w3c.dom.Node marshalSignatureProperty(SignatureProperty prop)
           
(package private)  org.w3c.dom.Node marshalSignedInfo(SignedInfo si)
           
(package private)  org.w3c.dom.Node marshalTransform(Transform tr, java.lang.String elementName)
           
(package private)  org.w3c.dom.Node marshalTransforms(java.util.List transforms)
           
(package private)  org.w3c.dom.Node marshalX509Certificate(java.security.cert.X509Certificate cert)
           
(package private)  org.w3c.dom.Node marshalX509CRL(java.security.cert.X509CRL crl)
           
(package private)  org.w3c.dom.Node marshalX509Data(X509Data xd)
           
(package private)  org.w3c.dom.Node marshalX509IssuerSerial(X509IssuerSerial is)
           
(package private)  org.w3c.dom.Node marshalX509SKI(byte[] ki)
           
(package private)  org.w3c.dom.Node marshalX509SubjectName(java.lang.String dn)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_CACHE

final int MAX_CACHE
See Also:
Constant Field Values
Constructor Detail

Marshalling

Marshalling(DOMSignContext dscontext,
            AlgorithmFactory af)

Marshalling

Marshalling(org.w3c.dom.Node parent,
            DOMCryptoContext dcontext,
            AlgorithmFactory af)
Method Detail

marshalSignature

static org.w3c.dom.Node marshalSignature(XMLSignature sig,
                                         DOMSignContext context,
                                         AlgorithmFactory af)
                                  throws MarshalException
Called by XMLSignatureImpl.sign().

Throws:
MarshalException

marshalKeyInfo

static org.w3c.dom.Node marshalKeyInfo(KeyInfo ki,
                                       org.w3c.dom.Node parent,
                                       DOMCryptoContext context,
                                       AlgorithmFactory afactory)
                                throws MarshalException
Called by KeyInfoImpl.marshal()

Parameters:
context - may be null.
Throws:
MarshalException

doIndentation

public boolean doIndentation()

getUnit

public int getUnit()

getStart

public int getStart()

increment

public void increment()

decrement

public void decrement()

getLevel

public int getLevel()

getText

public java.lang.String getText()

marshalSignature

org.w3c.dom.Node marshalSignature(XMLSignature sig)
                            throws MarshalException
Throws:
MarshalException

marshalSignedInfo

org.w3c.dom.Node marshalSignedInfo(SignedInfo si)
                             throws MarshalException
Throws:
MarshalException

marshalTransform

org.w3c.dom.Node marshalTransform(Transform tr,
                                  java.lang.String elementName)
                            throws MarshalException
Throws:
MarshalException

marshalSignatureMethod

org.w3c.dom.Node marshalSignatureMethod(SignatureMethod sm)
                                  throws MarshalException
Throws:
MarshalException

marshalReference

org.w3c.dom.Node marshalReference(Reference ref)
                            throws MarshalException
Throws:
MarshalException

marshalTransforms

org.w3c.dom.Node marshalTransforms(java.util.List transforms)
                             throws MarshalException
Throws:
MarshalException

marshalDigestMethod

org.w3c.dom.Node marshalDigestMethod(DigestMethod dm)
                               throws MarshalException
Throws:
MarshalException

marshalKeyInfo

org.w3c.dom.Node marshalKeyInfo(KeyInfo ki)
                          throws MarshalException
Throws:
MarshalException

marshalKeyName

org.w3c.dom.Node marshalKeyName(KeyName kname)
                          throws MarshalException
Throws:
MarshalException

marshalKeyValue

org.w3c.dom.Node marshalKeyValue(KeyValue kvalue)
                           throws MarshalException
Throws:
MarshalException

marshalRetrievalMethod

org.w3c.dom.Node marshalRetrievalMethod(RetrievalMethod rm)
                                  throws MarshalException
Throws:
MarshalException

marshalX509Data

org.w3c.dom.Node marshalX509Data(X509Data xd)
                           throws MarshalException
Throws:
MarshalException

marshalX509SubjectName

org.w3c.dom.Node marshalX509SubjectName(java.lang.String dn)
                                  throws MarshalException
Throws:
MarshalException

marshalX509SKI

org.w3c.dom.Node marshalX509SKI(byte[] ki)
                          throws MarshalException
Throws:
MarshalException

marshalX509Certificate

org.w3c.dom.Node marshalX509Certificate(java.security.cert.X509Certificate cert)
                                  throws MarshalException
Throws:
MarshalException

marshalX509CRL

org.w3c.dom.Node marshalX509CRL(java.security.cert.X509CRL crl)
                          throws MarshalException
Throws:
MarshalException

marshalX509IssuerSerial

org.w3c.dom.Node marshalX509IssuerSerial(X509IssuerSerial is)
                                   throws MarshalException
Throws:
MarshalException

marshalPGPData

org.w3c.dom.Node marshalPGPData(PGPData pgp)
                          throws MarshalException
Throws:
MarshalException

marshalObject

org.w3c.dom.Node marshalObject(XMLObject obj)
                         throws MarshalException
Throws:
MarshalException

marshalManifest

org.w3c.dom.Node marshalManifest(Manifest manifest)
                           throws MarshalException
Throws:
MarshalException

marshalSignatureProperties

org.w3c.dom.Node marshalSignatureProperties(SignatureProperties props)
                                      throws MarshalException
Throws:
MarshalException

marshalSignatureProperty

org.w3c.dom.Node marshalSignatureProperty(SignatureProperty prop)
                                    throws MarshalException
Throws:
MarshalException

marshalAny

org.w3c.dom.Node marshalAny(XMLStructure xs)
                      throws MarshalException
Throws:
MarshalException

marshalOther

org.w3c.dom.Node marshalOther(DOMStructure ds)
                        throws MarshalException
Throws:
MarshalException

createElement

org.w3c.dom.Element createElement(java.lang.String namespace,
                                  java.lang.String local,
                                  boolean nsdecl)

createElement

public static org.w3c.dom.Element createElement(DOMCryptoContext c,
                                                org.w3c.dom.Document f,
                                                java.lang.String namespace,
                                                java.lang.String local,
                                                boolean nsdecl)

indent

void indent(org.w3c.dom.Node parent)

insertBase64Binary

static void insertBase64Binary(org.w3c.dom.Node parent,
                               byte[] data)

XML Security, 1.6

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