All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class orbasec.corba.PolicyUtil

java.lang.Object
   |
   +----orbasec.corba.PolicyUtil

public class PolicyUtil
extends Object
This class contains some common static functions for dealing with the policies concerning security.


Constructor Index

 o PolicyUtil()

Method Index

 o add_default_policies(Current, Policy[])
This function will fill out the complete set of runtime security related policies.
 o dump_mechanism_policy(MechanismPolicy)
 o dump_policies(Policy[])
 o get_client_trust_from_policies(Policy[])
This function retrieves the client_trust from the policy objects.
 o get_delegation_directive_from_policies(Policy[])
This function retrieves the Delegation Directive from the policy objects.
 o get_interop_policy(Policy[])
This function gets the Interoperability Policy if it exists in the list.
 o get_invoc_creds_from_policies(Policy[])
This function retrieves the Credentials List from the policy objects.
 o get_mechanisms_from_policies(Current, Policy[])
This function retrieves the MechanismType List from the policy objects.
 o get_mechanisms_from_policies(Policy[])
This function retrieves the MechanismType List from the policy objects.
 o get_policy(Policy[], int)
This function retrieves the policy from a list of the policy objects.
 o get_qop_from_policies(Policy[])
This function retrieves the QOP from the policy objects.
 o get_target_trust_from_policies(Policy[])
This function retrieves the target_trust from the policy objects.
 o get_trust_from_policies(Policy[])
This function retrieves the EstablishTrustPolicy from the policy objects.
 o supports_deldir_policy(Policy, DelegationDirective)
 o supports_establish_trust_policy(Policy, short)
 o supports_invoc_creds_policy(Policy, Credentials)
 o supports_mech_policy(Policy, String)
 o supports_qop_policy(Policy, short)

Constructors

 o PolicyUtil
 public PolicyUtil()

Methods

 o get_policy
 public static final Policy get_policy(Policy policies[],
                                       int policy_type)
This function retrieves the policy from a list of the policy objects.

Returns:
The Policy Object or null if it is not in the list;
 o get_interop_policy
 public static final InteroperabilityPolicy get_interop_policy(Policy policies[])
This function gets the Interoperability Policy if it exists in the list.

 o get_trust_from_policies
 public static EstablishTrust get_trust_from_policies(Policy policies[])
This function retrieves the EstablishTrustPolicy from the policy objects. It is not required that a policy with the EstablishTrustPolicy Type be in the policies list.

Returns:
The the Establish Trust Policy Object or null;
 o get_client_trust_from_policies
 public static boolean get_client_trust_from_policies(Policy policies[])
This function retrieves the client_trust from the policy objects. It is required that a policy with the EstablishTrustPolicy Type be in the policies list.

Returns:
The client trust contained in the Establish Trust Policy Object.
 o get_target_trust_from_policies
 public static boolean get_target_trust_from_policies(Policy policies[])
This function retrieves the target_trust from the policy objects. It is required that a policy with the EstablishTrustPolicy Type be in the policies list.

Returns:
The target trust contained in the Establish Trust Policy Object.
 o get_delegation_directive_from_policies
 public static DelegationDirective get_delegation_directive_from_policies(Policy policies[])
This function retrieves the Delegation Directive from the policy objects. If the policy does not exist it returns null.

Returns:
The Delegation Directive contained in the Delegation Directive Policy Object or null if no Delegation Directive Policy Object is found.
 o get_qop_from_policies
 public static QOP get_qop_from_policies(Policy policies[])
This function retrieves the QOP from the policy objects. If the policy does not exist it returns null.

Returns:
The QOP contained in the QOP Policy Object or null; if no QOP Policy object cannot be found.
 o get_invoc_creds_from_policies
 public static Credentials[] get_invoc_creds_from_policies(Policy policies[])
This function retrieves the Credentials List from the policy objects. It returns null if the policy is not there..

Returns:
The Credentials List contained in the InvocationCredetnials Policy Object or null if no Invocation Crededtials Policy object cannot be found.
 o get_mechanisms_from_policies
 public static String[] get_mechanisms_from_policies(Policy policies[])
This function retrieves the MechanismType List from the policy objects. It returns null if the policy exists.

Returns:
The MechanismType List contained in the Mechanism Policy Object or null if no Mechanism Policy object cannot be found.
 o get_mechanisms_from_policies
 public static String[] get_mechanisms_from_policies(Current current,
                                                     Policy policies[])
This function retrieves the MechanismType List from the policy objects. It returns the mechanisms of the credentials in the InvocationCredentials policy if the Mechanism policy does not exist. It returns the mechanisms of the Own credentials off of current, if the Invocationcrednetials policy does not exist.

Returns:
The MechanismType List contained in the Mechanism Policy Object or an empty array.
 o supports_deldir_policy
 public static boolean supports_deldir_policy(Policy del_policy,
                                              DelegationDirective directive)
 o supports_invoc_creds_policy
 public static boolean supports_invoc_creds_policy(Policy creds_policy,
                                                   Credentials creds)
 o supports_mech_policy
 public static boolean supports_mech_policy(Policy mech_policy,
                                            String mechanism)
 o supports_qop_policy
 public static boolean supports_qop_policy(Policy qop_policy,
                                           short assoc_options)
 o supports_establish_trust_policy
 public static boolean supports_establish_trust_policy(Policy et_policy,
                                                       short options)
 o dump_policies
 public static void dump_policies(Policy policies[])
 o dump_mechanism_policy
 public static void dump_mechanism_policy(MechanismPolicy policy)
 o add_default_policies
 public static Policy[] add_default_policies(Current current,
                                             Policy policies[])
This function will fill out the complete set of runtime security related policies. The policies, if not complete, will get default policies for InvocationCredentials: DelegationDirective: QOP: Mechanism: EstablishTrust: from the given current object;


All Packages  Class Hierarchy  This Package  Previous  Next  Index