public abstract class Options extends AbstractKerberosFlags
MAX_SIZE, value| Modifier | Constructor and Description |
|---|---|
protected |
Options(int maxSize)
Creates a new BitSet with a specific number of bits.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear(int index)
Clears (sets false) the option at a given index.
|
boolean |
get(int index)
Returns the value of the option at the given index.
|
byte[] |
getBytes()
Byte-reversing methods are an anomaly of the BouncyCastle
DERBitString endianness.
|
boolean |
match(Options options,
int option)
Returns whether the option at a given index matches the option in this
Options. |
void |
set(int index)
Sets the option at a given index.
|
protected void |
setBytes(byte[] bytes)
Set the array of bytes representing the bits
|
String |
toString() |
clearFlag, clearFlag, equals, getIntValue, hashCode, isFlagSet, isFlagSet, isFlagSet, setData, setFlag, setFlagprotected Options(int maxSize)
maxSize - The number of bits to allocatepublic boolean match(Options options, int option)
Options.options - The set of possible optionsoption - The Option we are looking forpublic boolean get(int index)
index - The position in the BitSet for the option we are looking forpublic void set(int index)
index - The position of the Option w want to setpublic void clear(int index)
index - The position of the Option we want to clearpublic byte[] getBytes()
Options bytes.protected void setBytes(byte[] bytes)
bytes - The bytes to storepublic String toString()
toString in class org.apache.directory.api.asn1.util.BitStringCopyright © 2003–2014 The Apache Software Foundation. All rights reserved.