com.ibm.xml.crypto.dsig.dom
Class Unmarshalling
java.lang.Object
com.ibm.xml.crypto.dsig.dom.Unmarshalling
- All Implemented Interfaces:
- Constants
public class Unmarshalling
- extends java.lang.Object
- implements Constants
$Id: Unmarshalling.java,v 1.24 2005/05/18 04:18:24 kent Exp $
Field Summary |
(package private) static boolean |
CHECK_WHITESPACES
|
(package private) static java.lang.String |
P192_O
|
(package private) static java.lang.String |
P256_O
|
(package private) static java.lang.String |
P384_O
|
(package private) static java.lang.String |
P521_O
|
(package private) static boolean |
VERBOSE
|
static java.lang.String |
XML_SPACES
|
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VERBOSE
static final boolean VERBOSE
- See Also:
- Constant Field Values
CHECK_WHITESPACES
static final boolean CHECK_WHITESPACES
- See Also:
- Constant Field Values
XML_SPACES
public static final java.lang.String XML_SPACES
- See Also:
- Constant Field Values
P192_O
static final java.lang.String P192_O
- See Also:
- Constant Field Values
P256_O
static final java.lang.String P256_O
- See Also:
- Constant Field Values
P384_O
static final java.lang.String P384_O
- See Also:
- Constant Field Values
P521_O
static final java.lang.String P521_O
- See Also:
- Constant Field Values
Unmarshalling
Unmarshalling(DOMValidateContext c,
XMLSignatureFactory f)
unmarshal
static XMLSignature unmarshal(XMLSignatureFactory factory,
XMLValidateContext context)
throws MarshalException
- Throws:
MarshalException
unmarshal
static XMLSignature unmarshal(XMLSignatureFactory factory,
XMLStructure sig)
throws MarshalException
- Throws:
MarshalException
unmarshalKeyInfo
static KeyInfo unmarshalKeyInfo(XMLSignatureFactory factory,
XMLStructure ki)
throws MarshalException
- Throws:
MarshalException
unmarshalSignature
XMLSignature unmarshalSignature(org.w3c.dom.Node node)
throws MarshalException
- unmarshalFooBar() methods:
A caller is responsible for the element type of the specified node.
- Throws:
MarshalException
unmarshalSignedInfo
SignedInfo unmarshalSignedInfo(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalC14nMethod
CanonicalizationMethod unmarshalC14nMethod(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalSignatureMethod
SignatureMethod unmarshalSignatureMethod(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalReference
Reference unmarshalReference(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalTransforms
java.util.List unmarshalTransforms(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalTransform
Transform unmarshalTransform(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalDigestMethod
DigestMethod unmarshalDigestMethod(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalKeyInfo
KeyInfo unmarshalKeyInfo(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalKeyName
KeyName unmarshalKeyName(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalKeyValue
KeyValue unmarshalKeyValue(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalECDSAKeyValue
java.security.PublicKey unmarshalECDSAKeyValue(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalECCurve
java.lang.String unmarshalECCurve(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalECPublicKey
com.ibm.xml.crypto.dsig.dom.Unmarshalling.TwoBigInts unmarshalECPublicKey(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalDSAKeyValue
java.security.PublicKey unmarshalDSAKeyValue(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalRSAKeyValue
java.security.PublicKey unmarshalRSAKeyValue(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalRetrievalMethod
RetrievalMethod unmarshalRetrievalMethod(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalX509Data
XMLStructure unmarshalX509Data(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalX509IssuerSerial
XMLStructure unmarshalX509IssuerSerial(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalPGPData
PGPData unmarshalPGPData(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalObject
XMLObject unmarshalObject(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalAny
XMLStructure unmarshalAny(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalManifest
Manifest unmarshalManifest(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalSignatureProperties
SignatureProperties unmarshalSignatureProperties(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalSignatureProperty
SignatureProperty unmarshalSignatureProperty(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
getStringValue
public static java.lang.String getStringValue(org.w3c.dom.Node node)
throws MarshalException
- Concatinate text in child nodes of specified node
- Returns:
- never be null.
- Throws:
MarshalException
- if node has non-text nodes.
unmarshalBase64Element
static byte[] unmarshalBase64Element(org.w3c.dom.Node node)
throws MarshalException
- Returns:
- never be null
- Throws:
MarshalException
unmarshalBase64Value
static byte[] unmarshalBase64Value(org.w3c.dom.Node node,
java.lang.String attrName)
throws MarshalException
- Throws:
MarshalException
unmarshalCryptoBinary
static java.math.BigInteger unmarshalCryptoBinary(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
unmarshalCryptoBinary
static java.math.BigInteger unmarshalCryptoBinary(org.w3c.dom.Node node,
java.lang.String attrName)
throws MarshalException
- Throws:
MarshalException
unmarshalDecimalBigInt
static java.math.BigInteger unmarshalDecimalBigInt(org.w3c.dom.Node node,
java.lang.String attrName)
throws MarshalException
- Throws:
MarshalException
isIgnorableNode
public static boolean isIgnorableNode(org.w3c.dom.Node child)
throws MarshalException
- Throws:
MarshalException
- if non-whitespace character exists.
isIgnorableNode2
public static boolean isIgnorableNode2(org.w3c.dom.Node child)
isWhitespaceNode
static boolean isWhitespaceNode(org.w3c.dom.Node node)
- Parameters:
node
- Text or CDATASection node.
confirmEmpty
public static boolean confirmEmpty(org.w3c.dom.Node node)
throws MarshalException
- Throws:
MarshalException
getAttributeValue
public static java.lang.String getAttributeValue(org.w3c.dom.Node node,
java.lang.String attr)
Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.