org.jcp.xml.dsig.internal.dom
Class DOMCryptoBinary
java.lang.Object
org.jcp.xml.dsig.internal.dom.DOMStructure
org.jcp.xml.dsig.internal.dom.DOMCryptoBinary
- All Implemented Interfaces:
- XMLStructure
public final class DOMCryptoBinary
- extends DOMStructure
A DOM-based representation of the XML CryptoBinary
simple 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 |
DOMCryptoBinary(java.math.BigInteger bigNum)
Create a DOMCryptoBinary instance from the specified
BigInteger |
DOMCryptoBinary(org.w3c.dom.Node cbNode)
Creates a DOMCryptoBinary from a node. |
Method Summary |
java.math.BigInteger |
getBigNum()
Returns the BigInteger that this object contains. |
void |
marshal(org.w3c.dom.Node parent,
java.lang.String prefix,
DOMCryptoContext context)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DOMCryptoBinary
public DOMCryptoBinary(java.math.BigInteger bigNum)
- Create a
DOMCryptoBinary
instance from the specified
BigInteger
- Parameters:
bigNum
- the arbitrary-length integer
- Throws:
java.lang.NullPointerException
- if bigNum
is null
DOMCryptoBinary
public DOMCryptoBinary(org.w3c.dom.Node cbNode)
throws MarshalException
- Creates a
DOMCryptoBinary
from a node.
- Parameters:
cbNode
- a CryptoBinary text node
- Throws:
MarshalException
- if value cannot be decoded (invalid format)
getBigNum
public java.math.BigInteger getBigNum()
- Returns the
BigInteger
that this object contains.
- Returns:
- the
BigInteger
that this object contains
marshal
public void marshal(org.w3c.dom.Node parent,
java.lang.String prefix,
DOMCryptoContext context)
throws MarshalException
- Specified by:
marshal
in class DOMStructure
- Throws:
MarshalException
Copyright © 2000-2011 The Apache Software Foundation. All Rights Reserved.