public abstract class AbstractKerberosFlags extends org.apache.directory.api.asn1.util.BitString
Modifier and Type | Field and Description |
---|---|
static int |
MAX_SIZE
The maximum size of the BitString as specified for Kerberos flags.
|
protected int |
value
The associated value
|
Constructor and Description |
---|
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
|
Modifier and Type | Method and Description |
---|---|
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
|
public static final int MAX_SIZE
protected int value
public AbstractKerberosFlags()
public AbstractKerberosFlags(int value)
value
- The flags to storepublic AbstractKerberosFlags(byte[] flags)
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 checkpublic boolean isFlagSet(KerberosFlag flag)
flag
- The flag to checkpublic boolean isFlagSet(int flag)
flag
- The flags to testpublic 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 setCopyright © 2003–2020 The Apache Software Foundation. All rights reserved.