com.ibm.security12.sun.security.x509
Class IPAddressName

java.lang.Object
  |
  +--com.ibm.security12.sun.security.x509.IPAddressName

public class IPAddressName
extends Object
implements GeneralNameInterface

This class implements the IPAddressName as required by the GeneralNames ASN.1 object.

Version:
1.4
Author:
Amit Kapoor, Hemma Prafullchandra
See Also:
GeneralName, GeneralNameInterface, GeneralNames

Constructor Summary
IPAddressName(byte[] address)
          Create the IPAddressName object with the specified name.
IPAddressName(DerValue derValue)
          Create the IPAddressName object from the passed encoded Der value.
 
Method Summary
 void encode(DerOutputStream out)
          Encode the IPAddress name into the DerOutputStream.
 int getType()
          Return the type of the GeneralName.
 String toString()
          Return a printable string of IPaddress
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IPAddressName

public IPAddressName(DerValue derValue)
              throws IOException
Create the IPAddressName object from the passed encoded Der value.
Throws:
IOException - on error.

IPAddressName

public IPAddressName(byte[] address)
Create the IPAddressName object with the specified name.
Method Detail

getType

public int getType()
Return the type of the GeneralName.
Specified by:
getType in interface GeneralNameInterface

encode

public void encode(DerOutputStream out)
            throws IOException
Encode the IPAddress name into the DerOutputStream.
Specified by:
encode in interface GeneralNameInterface
Throws:
IOException - on encoding errors.

toString

public String toString()
Return a printable string of IPaddress
Overrides:
toString in class Object