Module org.apache.santuario.xmlsec
Class DOMCryptoBinary
- java.lang.Object
-
- org.apache.jcp.xml.dsig.internal.dom.DOMStructure
-
- org.apache.jcp.xml.dsig.internal.dom.DOMCryptoBinary
-
- All Implemented Interfaces:
XMLStructure
public final class DOMCryptoBinary extends DOMStructure
A DOM-based representation of the XMLCryptoBinarysimple type as defined in the W3C specification for XML-Signature Syntax and Processing. The XML Schema Definition is defined as:- Author:
- Sean Mullan
-
-
Constructor Summary
Constructors Constructor Description DOMCryptoBinary(BigInteger bigNum)Create aDOMCryptoBinaryinstance from the specifiedBigIntegerDOMCryptoBinary(Node cbNode)Creates aDOMCryptoBinaryfrom a node.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigIntegergetBigNum()Returns theBigIntegerthat this object contains.voidmarshal(Node parent, String prefix, DOMCryptoContext context)-
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.DOMStructure
equalsContent, isFeatureSupported
-
-
-
-
Constructor Detail
-
DOMCryptoBinary
public DOMCryptoBinary(BigInteger bigNum)
Create aDOMCryptoBinaryinstance from the specifiedBigInteger- Parameters:
bigNum- the arbitrary-length integer- Throws:
NullPointerException- ifbigNumisnull
-
DOMCryptoBinary
public DOMCryptoBinary(Node cbNode) throws MarshalException
Creates aDOMCryptoBinaryfrom a node.- Parameters:
cbNode- a CryptoBinary text node- Throws:
MarshalException- if value cannot be decoded (invalid format)
-
-
Method Detail
-
getBigNum
public BigInteger getBigNum()
Returns theBigIntegerthat this object contains.- Returns:
- the
BigIntegerthat this object contains
-
marshal
public void marshal(Node parent, String prefix, DOMCryptoContext context) throws MarshalException
- Specified by:
marshalin classDOMStructure- Throws:
MarshalException
-
-