|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.asn1.util.BitString
org.apache.directory.shared.kerberos.flags.AbstractKerberosFlags
org.apache.directory.shared.kerberos.codec.options.Options
public abstract class Options
A base class to manage Kerberos BitSet elements.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.kerberos.flags.AbstractKerberosFlags |
|---|
MAX_SIZE, value |
| Fields inherited from class org.apache.directory.shared.asn1.util.BitString |
|---|
EMPTY_STRING |
| Constructor Summary | |
|---|---|
protected |
Options(int maxSize)
Creates a new BitSet with a specific number of bits. |
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class org.apache.directory.shared.kerberos.flags.AbstractKerberosFlags |
|---|
clearFlag, clearFlag, equals, getIntValue, hashCode, isFlagSet, isFlagSet, isFlagSet, setData, setFlag, setFlag |
| Methods inherited from class org.apache.directory.shared.asn1.util.BitString |
|---|
clearBit, getBit, getData, getUnusedBits, setBit, setData, size |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected Options(int maxSize)
maxSize - The number of bits to allocate| Method Detail |
|---|
public boolean match(Options options,
int option)
Options.
options - The set of possible optionsoption - The Option we are looking for
public boolean get(int index)
index - The position in the BitSet for the option we are looking for
public 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.shared.asn1.util.BitString
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||