|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsun.security.mule.krb5.internal.util.KerberosFlags
sun.security.mule.krb5.internal.KDCOptions
public class KDCOptions
Implements the ASN.1 KDCOptions type.
This definition reflects the Network Working Group RFC 4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.
This class appears as data field in the initial request(KRB_AS_REQ) or subsequent request(KRB_TGS_REQ) to the KDC and indicates the flags that the client wants to set on the tickets. The optional bits are:
Various checks must be made before honoring an option. The restrictions on the use of some options are as follows:
| Field Summary | |
|---|---|
static int |
ALLOW_POSTDATE
|
static int |
ENC_TKT_IN_SKEY
|
static int |
FORWARDABLE
|
static int |
FORWARDED
|
int |
KDC_OPT_FORWARDABLE
|
int |
KDC_OPT_PROXIABLE
|
int |
KDC_OPT_RENEWABLE_OK
|
static int |
POSTDATED
|
static int |
PROXIABLE
|
static int |
PROXY
|
static int |
RENEW
|
static int |
RENEWABLE
|
static int |
RENEWABLE_OK
|
static int |
RESERVED
|
static int |
UNUSED10
|
static int |
UNUSED11
|
static int |
UNUSED7
|
static int |
UNUSED9
|
static int |
VALIDATE
|
| Fields inherited from class sun.security.mule.krb5.internal.util.KerberosFlags |
|---|
BITS_PER_UNIT |
| Constructor Summary | |
|---|---|
KDCOptions(boolean[] data)
Constructs a KDCOptions from the specified bit settings. |
|
KDCOptions(byte[] options)
Constructs a KDCOptions from the passed bit settings. |
|
KDCOptions(Config kerberosConfig)
|
|
KDCOptions(sun.security.util.DerValue encoding)
|
|
KDCOptions(int size,
byte[] data)
|
|
| Method Summary | |
|---|---|
boolean |
get(int option)
Gets the value(true/false) for one of the KDCOptions. |
static KDCOptions |
parse(sun.security.util.DerInputStream data,
byte explicitTag,
boolean optional)
Parse (unmarshal) a KDCOptions from a DER input stream. |
void |
set(int option,
boolean value)
Sets the value(true/false) for one of the KDCOptions. |
| Methods inherited from class sun.security.mule.krb5.internal.util.KerberosFlags |
|---|
asn1Encode, toBooleanArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public final int KDC_OPT_PROXIABLE
public final int KDC_OPT_RENEWABLE_OK
public final int KDC_OPT_FORWARDABLE
public static final int RESERVED
public static final int FORWARDABLE
public static final int FORWARDED
public static final int PROXIABLE
public static final int PROXY
public static final int ALLOW_POSTDATE
public static final int POSTDATED
public static final int UNUSED7
public static final int RENEWABLE
public static final int UNUSED9
public static final int UNUSED10
public static final int UNUSED11
public static final int RENEWABLE_OK
public static final int ENC_TKT_IN_SKEY
public static final int RENEW
public static final int VALIDATE
| Constructor Detail |
|---|
public KDCOptions(Config kerberosConfig)
public KDCOptions(int size,
byte[] data)
throws Asn1Exception
Asn1Exception
public KDCOptions(boolean[] data)
throws Asn1Exception
data - the bits to be set for the KDCOptions.
Asn1Exception - if an error occurs while decoding an ASN1
encoded data.
public KDCOptions(sun.security.util.DerValue encoding)
throws Asn1Exception,
IOException
Asn1Exception
IOExceptionpublic KDCOptions(byte[] options)
options - the bits to be set for the KDCOptions.| Method Detail |
|---|
public static KDCOptions parse(sun.security.util.DerInputStream data,
byte explicitTag,
boolean optional)
throws Asn1Exception,
IOException
data - the Der input stream value, which contains one or more
marshaled value.explicitTag - tag number.optional - indicate if this data field is optional
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
IOException - if an I/O error occurs while reading encoded data.
public void set(int option,
boolean value)
throws ArrayIndexOutOfBoundsException
KDCOptions.
set in class KerberosFlagsoption - an option bit.value - true if the option is selected, false if the option is not selected.
ArrayIndexOutOfBoundsException - if array index out of bound occurs.Krb5
public boolean get(int option)
throws ArrayIndexOutOfBoundsException
KDCOptions.
get in class KerberosFlagsoption - an option bit.
ArrayIndexOutOfBoundsException - if array index out of bound occurs.Krb5
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||