public abstract class AbstractKerberosFlags extends org.apache.directory.shared.asn1.primitives.BitString implements KerberosFlags
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
|
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
|
byte[] |
getBytes() |
static byte[] |
getBytes(int flags)
A static method to get the bayte array representation of an int
|
int |
getHexValue() |
int |
getIntValue()
Returns the int value associated with the flags
|
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 |
setFlag(int flag)
Set a flag in a list of flags
|
void |
setFlag(KerberosFlag flag)
Set a flag in a list of flags
|
void |
setFlags(byte[] bytes)
Modify a byte array to an integer value
|
public static final int MAX_SIZE
protected int value
public AbstractKerberosFlags()
public AbstractKerberosFlags(byte[] flags)
public static byte[] getBytes(int flags)
public byte[] getBytes()
getBytes
in interface KerberosFlags
public int getIntValue()
getIntValue
in interface KerberosFlags
public static boolean isFlagSet(int flags, int flag)
flags
- The flags to testflag
- The flag to checkpublic boolean isFlagSet(KerberosFlag flag)
isFlagSet
in interface KerberosFlags
flag
- The flag to checkpublic boolean isFlagSet(int flag)
isFlagSet
in interface KerberosFlags
flag
- The flags to testpublic void setFlag(KerberosFlag flag)
setFlag
in interface KerberosFlags
flag
- The flag to setpublic void setFlag(int flag)
setFlag
in interface KerberosFlags
flag
- The flag to setpublic void setFlags(byte[] bytes)
bytes
- The 4 bytes byte array to transform.public void clearFlag(KerberosFlag flag)
clearFlag
in interface KerberosFlags
flag
- The flag to setpublic void clearFlag(int flag)
clearFlag
in interface KerberosFlags
flag
- The flag to setpublic int getHexValue()
Copyright © 2003-2013 The Apache Software Foundation. All Rights Reserved.