Class DnsLabel

    • Constructor Detail

      • DnsLabel

        protected DnsLabel​(java.lang.String label)
    • Method Detail

      • getLabelType

        public final java.lang.String getLabelType()
      • toString

        public final java.lang.String toString()
        Specified by:
        toString in interface java.lang.CharSequence
        Overrides:
        toString in class java.lang.Object
      • getRawLabel

        public final java.lang.String getRawLabel()
        Get the raw label. Note that this may return a String containing null bytes. Those Strings are notoriously difficult to handle from a security perspective. Therefore it is recommended to use toString() instead, which will return a sanitized String.
        Returns:
        the raw label.
        Since:
        1.1.0
      • equals

        public final boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • writeToBoas

        public final void writeToBoas​(java.io.ByteArrayOutputStream byteArrayOutputStream)
      • compareTo

        public final int compareTo​(DnsLabel other)
        Specified by:
        compareTo in interface java.lang.Comparable<DnsLabel>
      • from

        public static DnsLabel from​(java.lang.String label)
      • from

        public static DnsLabel[] from​(java.lang.String[] labels)
      • isIdnAcePrefixed

        public static boolean isIdnAcePrefixed​(java.lang.String string)
      • toSafeRepesentation

        public static java.lang.String toSafeRepesentation​(java.lang.String dnsLabel)