Class DOMCryptoBinary
- java.lang.Object
-
- org.apache.jcp.xml.dsig.internal.dom.DOMStructure
-
- org.apache.jcp.xml.dsig.internal.dom.DOMCryptoBinary
-
- All Implemented Interfaces:
javax.xml.crypto.XMLStructure
public final class DOMCryptoBinary extends DOMStructure
A DOM-based representation of the XMLCryptoBinary
simple type as defined in the W3C specification for XML-Signature Syntax and Processing. The XML Schema Definition is defined as:
-
-
Constructor Summary
Constructors Constructor Description DOMCryptoBinary(java.math.BigInteger bigNum)
Create aDOMCryptoBinary
instance from the specifiedBigInteger
DOMCryptoBinary(org.w3c.dom.Node cbNode)
Creates aDOMCryptoBinary
from a node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.math.BigInteger
getBigNum()
Returns theBigInteger
that this object contains.void
marshal(org.w3c.dom.Node parent, java.lang.String prefix, javax.xml.crypto.dom.DOMCryptoContext context)
-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
isFeatureSupported
-
-
-
-
Constructor Detail
-
DOMCryptoBinary
public DOMCryptoBinary(java.math.BigInteger bigNum)
Create aDOMCryptoBinary
instance from the specifiedBigInteger
- Parameters:
bigNum
- the arbitrary-length integer- Throws:
java.lang.NullPointerException
- ifbigNum
isnull
-
DOMCryptoBinary
public DOMCryptoBinary(org.w3c.dom.Node cbNode) throws javax.xml.crypto.MarshalException
Creates aDOMCryptoBinary
from a node.- Parameters:
cbNode
- a CryptoBinary text node- Throws:
javax.xml.crypto.MarshalException
- if value cannot be decoded (invalid format)
-
-
Method Detail
-
getBigNum
public java.math.BigInteger getBigNum()
Returns theBigInteger
that this object contains.- Returns:
- the
BigInteger
that this object contains
-
marshal
public void marshal(org.w3c.dom.Node parent, java.lang.String prefix, javax.xml.crypto.dom.DOMCryptoContext context) throws javax.xml.crypto.MarshalException
- Specified by:
marshal
in classDOMStructure
- Throws:
javax.xml.crypto.MarshalException
-
-