|
||||||||||
| 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
public abstract class AbstractKerberosFlags
An implementation of a BitString for any KerberosFlags. The different values are stored in an int, as there can't be more than 32 flags (TicketFlag). Some basic operations are implemented in this abstract class, like those manipulating flags.
| Field Summary | |
|---|---|
static int |
MAX_SIZE
The maximum size of the BitString as specified for Kerberos flags. |
protected int |
value
The associated value |
| Fields inherited from class org.apache.directory.shared.asn1.util.BitString |
|---|
EMPTY_STRING |
| Constructor Summary | |
|---|---|
AbstractKerberosFlags()
Standard constructor, which create a BitString containing 32 bits |
|
AbstractKerberosFlags(byte[] flags)
Standard constructor, taking a byte array, 32 bits |
|
AbstractKerberosFlags(int value)
Standard constructor, which create a BitString containing 32 bits |
|
| Method Summary | |
|---|---|
void |
clearFlag(int flag)
clear a flag in a list of flags |
void |
clearFlag(KerberosFlag flag)
clear a flag in a list of flags |
boolean |
equals(Object obj)
|
int |
getIntValue()
Returns the int value associated with the flags |
int |
hashCode()
|
boolean |
isFlagSet(int flag)
Check if a flag is set |
static boolean |
isFlagSet(int flags,
int flag)
Check if a flag is set |
boolean |
isFlagSet(KerberosFlag flag)
Check if a flag is set for the actual value |
void |
setData(int value)
Store the flags contained in the given integer value |
void |
setFlag(int flag)
Set a flag in a list of flags |
void |
setFlag(KerberosFlag flag)
Set a flag in a list of flags |
| Methods inherited from class org.apache.directory.shared.asn1.util.BitString |
|---|
clearBit, getBit, getData, getUnusedBits, setBit, setData, size, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int MAX_SIZE
protected int value
| Constructor Detail |
|---|
public AbstractKerberosFlags()
public AbstractKerberosFlags(int value)
value - The flags to storepublic AbstractKerberosFlags(byte[] flags)
| Method Detail |
|---|
public void setData(int value)
value - The list of flags to set, as a intpublic int getIntValue()
public static boolean isFlagSet(int flags,
int flag)
flags - The flags to testflag - The flag to check
public boolean isFlagSet(KerberosFlag flag)
flag - The flag to check
public boolean isFlagSet(int flag)
flag - The flags to test
public void setFlag(KerberosFlag flag)
flag - The flag to setpublic void setFlag(int flag)
flag - The flag to setpublic void clearFlag(KerberosFlag flag)
flag - The flag to setpublic void clearFlag(int flag)
flag - The flag to setpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||