All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class orbasec.corba.InteroperabilityPolicy

java.lang.Object
   |
   +----orbasec.corba.LocalObject
           |
           +----orbasec.corba.InteroperabilityPolicy

public class InteroperabilityPolicy
extends LocalObject
implements InteroperabilityPolicy
This class implements a specialize ORBAsec runtime policy that tells the Security Service to ignore the Target Requires/Supports fields in the security component of a target IOR when making a client side interoperability decision.

This policy operates by creating the policy as assigning mechansims which requires/supports should be ignored. This effect is achieved by calling the set_ignore operation. Such as:

  orbasec.corba.InteroperabilityPolicy policy = 
        new orbasec.corba.InteropabilityPolicy();
  policy.set_ignore("SSL");
  org.omg.CORBA.Policy[] policies = new org.omg.CORBA.Policy[1];
  policies[0] = policy;
  current.set_overrides(policies,org.omg.CORBA.ADD_OVERRIDE.value);
 

The above code would force the ORB to at the very least to connect to an SSL protected object before. This policy is needed to talk with almost all other ORB vendor's SSL products (to date).


Constructor Index

 o InteroperabilityPolicy()
Default Constructor.

Method Index

 o copy()
Not implemented.
 o destroy()
Does nothing.
 o equals(Object)
Returns true only if this is the same object as it is compared to.
 o ignore_target_requires_supports(String)
IDL:orbasec.SecLev2.Interoperability::ignore_target_requires_supports:1.0

Returns true if the mechanism is supported by any of the mechanisms set in the policy.

 o policy_type()
The policy type.
 o set_ignore(String)
Administrative function for the policy.

Constructors

 o InteroperabilityPolicy
 public InteroperabilityPolicy()
Default Constructor.

Methods

 o equals
 public boolean equals(Object obj)
Returns true only if this is the same object as it is compared to.

Overrides:
equals in class Object
 o policy_type
 public int policy_type()
The policy type.

 o copy
 public Policy copy()
Not implemented.

 o destroy
 public void destroy()
Does nothing.

 o ignore_target_requires_supports
 public boolean ignore_target_requires_supports(String mechanism)
IDL:orbasec.SecLev2.Interoperability::ignore_target_requires_supports:1.0

Returns true if the mechanism is supported by any of the mechanisms set in the policy.

 o set_ignore
 public void set_ignore(String mechanism)
Administrative function for the policy. This call specific to the implemenation of the orbasec.SecLev2.InteroperabilityPolicy.

This call is used to set the mechanism to ignore.

  policy.set_ignore("Kerberos,DES_CBC_CRC,DES_CBC_MD5");
 
will cause both "Kerberos,DES_CBC_CRC" and "Kerberos_MIT,DES_CBC_MD5" to be ignored. Multiple calls are additive, such as one can add
  policy.set_ignore("SSL");
 
to have "SSL" ignored for requires/supports as well.

NOTE: There is no "remove" operation.


All Packages  Class Hierarchy  This Package  Previous  Next  Index