sun.security.mule.krb5.internal
Class APOptions

java.lang.Object
  extended by sun.security.mule.krb5.internal.util.KerberosFlags
      extended by sun.security.mule.krb5.internal.APOptions

public class APOptions
extends KerberosFlags

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
 
Fields inherited from class sun.security.mule.krb5.internal.util.KerberosFlags
BITS_PER_UNIT
 
Constructor Summary
APOptions()
           
APOptions(boolean[] data)
           
APOptions(sun.security.util.DerValue encoding)
           
APOptions(int oneBit)
           
APOptions(int size, byte[] data)
           
 
Method Summary
static APOptions parse(sun.security.util.DerInputStream data, byte explicitTag, boolean optional)
          Parse (unmarshal) an APOptions from a DER input stream.
 
Methods inherited from class sun.security.mule.krb5.internal.util.KerberosFlags
asn1Encode, get, set, toBooleanArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

APOptions

public APOptions()

APOptions

public APOptions(int oneBit)
          throws Asn1Exception
Throws:
Asn1Exception

APOptions

public APOptions(int size,
                 byte[] data)
          throws Asn1Exception
Throws:
Asn1Exception

APOptions

public APOptions(boolean[] data)
          throws Asn1Exception
Throws:
Asn1Exception

APOptions

public APOptions(sun.security.util.DerValue encoding)
          throws IOException,
                 Asn1Exception
Throws:
IOException
Asn1Exception
Method Detail

parse

public static APOptions parse(sun.security.util.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 - the Der input stream value, which contains one or more marshaled value.
explicitTag - tag number.
optional - indicate if this data field is optional.
Returns:
an instance of APOptions.
Throws:
Asn1Exception - if an error occurs while decoding an ASN1 encoded data.
IOException - if an I/O error occurs while reading encoded data.


Copyright © 2013. All Rights Reserved.