Class OtherName

    • Constructor Detail

      • OtherName

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

        public OtherName​(ObjectIdentifier oid,
                         byte[] data)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • OtherName

        public OtherName​(ObjectIdentifier oid,
                         byte tag,
                         java.lang.String value)
                  throws java.io.IOException
        Constructs a string-based other name.
        Throws:
        java.io.IOException
      • OtherName

        public OtherName​(ObjectIdentifier oid,
                         java.lang.String value)
                  throws java.io.IOException
        Throws:
        java.io.IOException
      • OtherName

        public OtherName​(byte[] data)
    • Method Detail

      • encode

        public void encode​(DerOutputStream out)
                    throws java.io.IOException
        Encode the IPAddress name into the DerOutputStream.
        Specified by:
        encode in interface GeneralNameInterface
        Parameters:
        out - the DER stream to encode the IPAddressName to.
        Throws:
        java.io.IOException - on encoding errors.
      • decode

        public void decode​(java.io.InputStream in)
                    throws java.io.IOException
        Throws:
        java.io.IOException
      • getValue

        public byte[] getValue()
      • toString

        public java.lang.String toString()
        Return a printable string of IPaddress
        Overrides:
        toString in class java.lang.Object
      • toStr

        public java.lang.String toStr​(byte[] data)