org.apache.directory.server.kerberos.shared.messages.value
Class Options

java.lang.Object
  extended by org.apache.directory.server.kerberos.shared.messages.value.Options
Direct Known Subclasses:
ApOptions, KdcOptions

public abstract class Options
extends java.lang.Object

Version:
$Rev: 540371 $, $Date: 2007-05-22 02:00:43 +0200 (Di, 22 Mai 2007) $
Author:
Apache Directory Project

Constructor Summary
protected Options(int maxSize)
           
 
Method Summary
 void clear(int index)
          Clears (sets false) the option at a given index.
 boolean get(int index)
          Returns the value of the option at the given index.
 byte[] getBytes()
          Byte-reversing methods are an anomaly of the BouncyCastle DERBitString endianness.
 boolean match(Options options, int option)
          Returns whether the option at a given index matches the option in this Options.
 void set(int index)
          Sets the option at a given index.
protected  void setBytes(byte[] bytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Options

protected Options(int maxSize)
Method Detail

match

public boolean match(Options options,
                     int option)
Returns whether the option at a given index matches the option in this Options.

Parameters:
options -
option -
Returns:
true if two options are the same.

get

public boolean get(int index)
Returns the value of the option at the given index.

Parameters:
index -
Returns:
true if the option at the given index is set.

set

public void set(int index)
Sets the option at a given index.

Parameters:
index -

clear

public void clear(int index)
Clears (sets false) the option at a given index.

Parameters:
index -

getBytes

public byte[] getBytes()
Byte-reversing methods are an anomaly of the BouncyCastle DERBitString endianness. Thes methods can be removed if the Apache Directory Snickers codecs operate differently.

Returns:
The raw Options bytes.

setBytes

protected void setBytes(byte[] bytes)


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.