Class CIDRNetmask

java.lang.Object
org.mozilla.jss.netscape.security.x509.CIDRNetmask

public class CIDRNetmask extends Object
Netmask that is the number of significant bits.
  • Field Details

    • n

      private int n
  • Constructor Details

    • CIDRNetmask

      public CIDRNetmask(String s)
    • CIDRNetmask

      public CIDRNetmask(int n)
  • Method Details

    • write

      protected void write(ByteBuffer buf)
      Write the netmask into a byte buffer. Throw InvalidNetmaskException if negative or if the size exceeds the size of the address type inferred from the remaining buffer space (which must be 4 bytes for IPv4 and 16 bytes for IPv6). exceeds the size of the buffer
    • toString

      public String toString()
      Overrides:
      toString in class Object