com.ibm.security.krb5.internal

Class APOptions

  1. java.lang.Object
  2. extended bycom.ibm.security.krb5.internal.util.KrbBitArray
  3. extended bycom.ibm.security.krb5.internal.APOptions

  1. public class APOptions
  2. extends KrbBitArray
Implements the ASN.1 APOptions type. APOptions ::= BIT STRING { reserved(0), use-session-key(1), mutual-required(2) }

This definition reflects the Network Working Group RFC 1510 specifications dated September 1993 and available at http://www.ietf.org/rfc/rfc1510.txt.


Constructor Summary

Constructor and Description
APOptions()
APOptions(boolean[] data)
APOptions(com.ibm.security.util.DerValue encoding)
APOptions(int oneBit)
APOptions(int size,byte[] data)

Method Summary

Modifier and Type Method and Description
  1. byte[]
asn1Encode()
Write the extension to the DerOutputStream.
  1. static
  2. APOptions
parse(com.ibm.security.util.DerInputStream data,byte explicitTag,boolean optional)
Parse (unmarshal) an APOptions from a DER input stream.
Methods inherited from class com.ibm.security.krb5.internal.util.KrbBitArray
get, set, toBooleanArray
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

APOptions

  1. public APOptions()

APOptions

  1. public APOptions(int oneBit)
  2. throws Asn1Exception
Throws:

APOptions

  1. public APOptions(int size,
  2. byte[] data)
  3. throws Asn1Exception
Throws:

APOptions

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

APOptions

  1. public APOptions(com.ibm.security.util.DerValue encoding)
  2. throws java.io.IOException
  3. Asn1Exception
Throws:
java.io.IOException

Method Detail

parse

  1. public static APOptions parse(com.ibm.security.util.DerInputStream data,
  2. byte explicitTag,
  3. boolean optional)
  4. throws Asn1Exception
  5. java.io.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.
java.io.IOException - if an I/O error occurs while reading encoded data.

asn1Encode

  1. public byte[] asn1Encode()
  2. throws java.io.IOException
Write the extension to the DerOutputStream.
Throws:
java.io.IOException - if an I/O error occurs while reading encoded data.