org.openorb.orb.security
Class SecurityAssociationOptions

java.lang.Object
  extended by org.openorb.orb.security.SecurityAssociationOptions

public class SecurityAssociationOptions
extends java.lang.Object

Helper class for dealing with org.omg.CSIIOP.AssociationOptions and org.omg.SSLIOP.AssociationOptions.

Author:
Michael Rumpf

Field Summary
static short ATTR_ASSOCOPTS_MASK
          Mask with association options allowed for the attribute supports fields.
static short AUTH_ASSOCOPTS_MASK
          Mask with association options allowed for the authentication supports/requires fields.
static short TRANS_ASSOCOPTS_MASK
          Mask with association options allowed for the transport supports/requires fields.
 
Constructor Summary
SecurityAssociationOptions()
           
 
Method Summary
static short parse(java.lang.String options)
          This method parses a comma separated string of org.omg.CSIIOP.AssociationOptions.
static short parse(java.lang.String options, short mask)
          This method parses a comma separated string of org.omg.CSIIOP.AssociationOptions.
static java.lang.String toString(short flags)
          Convert the bits into a string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TRANS_ASSOCOPTS_MASK

public static final short TRANS_ASSOCOPTS_MASK
Mask with association options allowed for the transport supports/requires fields.

See Also:
Constant Field Values

AUTH_ASSOCOPTS_MASK

public static final short AUTH_ASSOCOPTS_MASK
Mask with association options allowed for the authentication supports/requires fields.

See Also:
Constant Field Values

ATTR_ASSOCOPTS_MASK

public static final short ATTR_ASSOCOPTS_MASK
Mask with association options allowed for the attribute supports fields.

See Also:
Constant Field Values
Constructor Detail

SecurityAssociationOptions

public SecurityAssociationOptions()
Method Detail

toString

public static java.lang.String toString(short flags)
Convert the bits into a string representation. The CSIIOP and the SSLIOP AssociationOptions are the same. The CSIIOP options are more complete and thuse those options are used here.

Parameters:
flags - A short value containing the bit field.
Returns:
A textual representation of the bit field where all flag names are concatenated by comma.

parse

public static short parse(java.lang.String options)
This method parses a comma separated string of org.omg.CSIIOP.AssociationOptions. It returns a short representing the bit-field of the parsed options.

Parameters:
options - A comma separated list of association option names.
Returns:
The bit field of the association options.

parse

public static short parse(java.lang.String options,
                          short mask)
This method parses a comma separated string of org.omg.CSIIOP.AssociationOptions. It returns a short representing the bit-field of the parsed options. Only those options are returned that are covered by the mask of allowed options.

Parameters:
options - A comma separated list of association option names.
mask - A mask of allowed options.
Returns:
The bit field of the association options.