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.
-
PolicyUtil()
-
-
add_default_policies(Current, Policy[])
- This function will fill out the complete set of
runtime security related policies.
-
dump_mechanism_policy(MechanismPolicy)
-
-
dump_policies(Policy[])
-
-
get_client_trust_from_policies(Policy[])
- This function retrieves the client_trust from the
policy objects.
-
get_delegation_directive_from_policies(Policy[])
- This function retrieves the Delegation Directive from the
policy objects.
-
get_interop_policy(Policy[])
- This function gets the Interoperability Policy if it
exists in the list.
-
get_invoc_creds_from_policies(Policy[])
- This function retrieves the Credentials List from the
policy objects.
-
get_mechanisms_from_policies(Current, Policy[])
- This function retrieves the MechanismType List from the
policy objects.
-
get_mechanisms_from_policies(Policy[])
- This function retrieves the MechanismType List from the
policy objects.
-
get_policy(Policy[], int)
- This function retrieves the policy from a list of the
policy objects.
-
get_qop_from_policies(Policy[])
- This function retrieves the QOP from the
policy objects.
-
get_target_trust_from_policies(Policy[])
- This function retrieves the target_trust from the
policy objects.
-
get_trust_from_policies(Policy[])
- This function retrieves the EstablishTrustPolicy from the
policy objects.
-
supports_deldir_policy(Policy, DelegationDirective)
-
-
supports_establish_trust_policy(Policy, short)
-
-
supports_invoc_creds_policy(Policy, Credentials)
-
-
supports_mech_policy(Policy, String)
-
-
supports_qop_policy(Policy, short)
-
PolicyUtil
public PolicyUtil()
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;
get_interop_policy
public static final InteroperabilityPolicy get_interop_policy(Policy policies[])
- This function gets the Interoperability Policy if it
exists in the list.
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;
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.
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.
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.
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.
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.
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.
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.
supports_deldir_policy
public static boolean supports_deldir_policy(Policy del_policy,
DelegationDirective directive)
supports_invoc_creds_policy
public static boolean supports_invoc_creds_policy(Policy creds_policy,
Credentials creds)
supports_mech_policy
public static boolean supports_mech_policy(Policy mech_policy,
String mechanism)
supports_qop_policy
public static boolean supports_qop_policy(Policy qop_policy,
short assoc_options)
supports_establish_trust_policy
public static boolean supports_establish_trust_policy(Policy et_policy,
short options)
dump_policies
public static void dump_policies(Policy policies[])
dump_mechanism_policy
public static void dump_mechanism_policy(MechanismPolicy policy)
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