java.lang.Object
org.mozilla.jss.netscape.security.x509.DNSName
All Implemented Interfaces:
Serializable, GeneralNameInterface

public class DNSName extends Object implements GeneralNameInterface
This class implements the DNSName as required by the GeneralNames ASN.1 object.
Version:
1.4
See Also:
  • Field Details

  • Constructor Details

    • DNSName

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

      public DNSName(String name)
      Create the DNSName object with the specified name.
      Parameters:
      name - the DNSName.
  • Method Details

    • 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 DNS name into the DerOutputStream.
      Specified by:
      encode in interface GeneralNameInterface
      Parameters:
      out - the DER stream to encode the DNSName to.
      Throws:
      IOException - on encoding errors.
    • toString

      public String toString()
      Convert the name into user readable string.
      Overrides:
      toString in class Object
    • getValue

      public String getValue()
      Get the raw DNSName value.