org.jcp.xml.dsig.internal.dom
Class DOMX509IssuerSerial

java.lang.Object
  extended by org.jcp.xml.dsig.internal.dom.DOMStructure
      extended by org.jcp.xml.dsig.internal.dom.DOMX509IssuerSerial
All Implemented Interfaces:
X509IssuerSerial, XMLStructure

public final class DOMX509IssuerSerial
extends DOMStructure
implements X509IssuerSerial

DOM-based implementation of X509IssuerSerial.

Author:
Sean Mullan

Constructor Summary
DOMX509IssuerSerial(org.w3c.dom.Element isElem)
          Creates a DOMX509IssuerSerial from an element.
DOMX509IssuerSerial(java.lang.String issuerName, java.math.BigInteger serialNumber)
          Creates a DOMX509IssuerSerial containing the specified issuer distinguished name/serial number pair.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getIssuerName()
          Returns the X.500 distinguished name of this X509IssuerSerial in RFC 2253 String format.
 java.math.BigInteger getSerialNumber()
          Returns the serial number of this X509IssuerSerial.
 int hashCode()
           
 void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, DOMCryptoContext context)
           
 
Methods inherited from class org.jcp.xml.dsig.internal.dom.DOMStructure
isFeatureSupported
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.xml.crypto.XMLStructure
isFeatureSupported
 

Constructor Detail

DOMX509IssuerSerial

public DOMX509IssuerSerial(java.lang.String issuerName,
                           java.math.BigInteger serialNumber)
Creates a DOMX509IssuerSerial containing the specified issuer distinguished name/serial number pair.

Parameters:
issuerName - the X.509 issuer distinguished name in RFC 2253 String format
serialNumber - the serial number
Throws:
java.lang.IllegalArgumentException - if the format of issuerName is not RFC 2253 compliant
java.lang.NullPointerException - if issuerName or serialNumber is null

DOMX509IssuerSerial

public DOMX509IssuerSerial(org.w3c.dom.Element isElem)
Creates a DOMX509IssuerSerial from an element.

Parameters:
isElem - an X509IssuerSerial element
Method Detail

getIssuerName

public java.lang.String getIssuerName()
Description copied from interface: X509IssuerSerial
Returns the X.500 distinguished name of this X509IssuerSerial in RFC 2253 String format.

Specified by:
getIssuerName in interface X509IssuerSerial
Returns:
the X.500 distinguished name in RFC 2253 String format (never null)

getSerialNumber

public java.math.BigInteger getSerialNumber()
Description copied from interface: X509IssuerSerial
Returns the serial number of this X509IssuerSerial.

Specified by:
getSerialNumber in interface X509IssuerSerial
Returns:
the serial number (never null)

marshal

public void marshal(org.w3c.dom.Node parent,
                    java.lang.String dsPrefix,
                    DOMCryptoContext context)
             throws MarshalException
Specified by:
marshal in class DOMStructure
Throws:
MarshalException

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


Copyright © 2000-2011 The Apache Software Foundation. All Rights Reserved.