Class CIDRNetmask
- java.lang.Object
-
- org.mozilla.jss.netscape.security.x509.CIDRNetmask
-
public class CIDRNetmask extends java.lang.ObjectNetmask that is the number of significant bits.
-
-
Constructor Summary
Constructors Constructor Description CIDRNetmask(int n)CIDRNetmask(java.lang.String s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringtoString()protected voidwrite(java.nio.ByteBuffer buf)Write the netmask into a byte buffer.
-
-
-
Method Detail
-
write
protected void write(java.nio.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 java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-