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

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

public final class DOMX509IssuerSerial
extends BaseStructure
implements X509IssuerSerial

DOM-based implementation of X509IssuerSerial.

Author:
Sean Mullan

Constructor Summary
DOMX509IssuerSerial(Element isElem)
          Creates a DOMX509IssuerSerial from an element.
DOMX509IssuerSerial(String issuerName, BigInteger serialNumber)
          Creates a DOMX509IssuerSerial containing the specified issuer distinguished name/serial number pair.
 
Method Summary
 boolean equals(Object obj)
           
 String getIssuerName()
           
 BigInteger getSerialNumber()
           
 int hashCode()
           
 
Methods inherited from class org.apache.jcp.xml.dsig.internal.dom.BaseStructure
isFeatureSupported, textOfNode
 
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(String issuerName,
                           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:
IllegalArgumentException - if the format of issuerName is not RFC 2253 compliant
NullPointerException - if issuerName or serialNumber is null

DOMX509IssuerSerial

public DOMX509IssuerSerial(Element isElem)
                    throws MarshalException
Creates a DOMX509IssuerSerial from an element.

Parameters:
isElem - an X509IssuerSerial element
Throws:
MarshalException
Method Detail

getIssuerName

public String getIssuerName()
Specified by:
getIssuerName in interface X509IssuerSerial

getSerialNumber

public BigInteger getSerialNumber()
Specified by:
getSerialNumber in interface X509IssuerSerial

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2000–2014 The Apache Software Foundation. All rights reserved.