XML Security, 1.6

com.ibm.xml.enc.dom
Class DOMX509IssuerSerial

java.lang.Object
  extended by com.ibm.xml.enc.dom.DOMStructure
      extended by com.ibm.xml.enc.dom.DOMX509IssuerSerial
All Implemented Interfaces:
X509IssuerSerial, XMLStructure

public final class DOMX509IssuerSerial
extends DOMStructure
implements X509IssuerSerial

DOM-based implementation of X509IssuerSerial.


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.
 void marshal(org.w3c.dom.Node parent, java.lang.String dsPrefix, DOMCryptoContext context)
           
 
Methods inherited from class com.ibm.xml.enc.dom.DOMStructure
isFeatureSupported
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, 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

XML Security, 1.6

Portions Copyright 2003, 2012 IBM Corporation.
Portions Copyright 2003, 2012 Oracle and/or its affiliates.