APIdia Launch Partner
Top Description Fields Constructors Methods
sun.security.krb5.internal

public Class APOptions

extends KerberosFlags
Class Inheritance
Imports
sun.security.krb5.Asn1Exception, sun.security.krb5.internal.util.KerberosFlags, sun.security.util.*, java.io.IOException

Implements the ASN.1 APOptions type.
APOptions    ::= KerberosFlags
     -- reserved(0),
     -- use-session-key(1),
     -- mutual-required(2)

KerberosFlags   ::= BIT STRING (SIZE (32..MAX))
             -- minimum number of bits shall be sent,
             -- but no fewer than 32

This definition reflects the Network Working Group RFC4120 specification available at http://www.ietf.org/rfc/rfc4120.txt.

Field Summary

Inherited from sun.security.krb5.internal.util.KerberosFlags:
BITS_PER_UNIT

Constructor Summary

AccessConstructor and Description
public
public
APOptions(int oneBit)

public
APOptions(int size, byte[] data)

public
APOptions(boolean[] data)

public
APOptions(DerValue encoding)

Method Summary

Modifier and TypeMethod and Description
public static APOptions

Returns:

an instance of APOptions.
parse
(DerInputStream
the Der input stream value, which contains one or more marshaled value.
data
,
byte
tag number.
explicitTag
,
boolean
indicate if this data field is optional.
optional
)

Parse (unmarshal) an APOptions from a DER input stream.

Inherited from sun.security.krb5.internal.util.KerberosFlags:
asn1EncodegetsettoBooleanArraytoString

Constructor Detail

APOptionsback to summary
public APOptions()
APOptionsback to summary
public APOptions(int oneBit) throws Asn1Exception
APOptionsback to summary
public APOptions(int size, byte[] data) throws Asn1Exception
APOptionsback to summary
public APOptions(boolean[] data) throws Asn1Exception
APOptionsback to summary
public APOptions(DerValue encoding) throws IOException, Asn1Exception

Method Detail

parseback to summary
public static APOptions parse(DerInputStream data, byte explicitTag, boolean optional) throws Asn1Exception, IOException

Parse (unmarshal) an APOptions from a DER input stream. This form parsing might be used when expanding a value which is part of a constructed sequence and uses explicitly tagged type.

Parameters
data:DerInputStream

the Der input stream value, which contains one or more marshaled value.

explicitTag:byte

tag number.

optional:boolean

indicate if this data field is optional.

Returns:APOptions

an instance of APOptions.

Exceptions
Asn1Exception:
if an error occurs while decoding an ASN1 encoded data.
IOException:
if an I/O error occurs while reading encoded data.