Class DNSName

    • Constructor Detail

      • DNSName

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

        public DNSName​(java.lang.String name)
        Create the DNSName object with the specified name.
        Parameters:
        name - the DNSName.
    • Method Detail

      • encode

        public void encode​(DerOutputStream out)
                    throws java.io.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:
        java.io.IOException - on encoding errors.
      • toString

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

        public java.lang.String getValue()
        Get the raw DNSName value.