net.sf.jguard.core.authorization.policy
Class PolicyHelper

java.lang.Object
  extended by net.sf.jguard.core.authorization.policy.PolicyHelper

public class PolicyHelper
extends java.lang.Object

utility class to deal with the Policy class.

Author:
Charles Gay

Field Summary
static java.lang.String GNU_JAVA_SECURITY_POLICY_FILE
           
static java.lang.String SUN_SECURITY_PROVIDER_POLICY_FILE
           
 
Constructor Summary
PolicyHelper()
           
 
Method Summary
static java.lang.Class findDefaultPolicy()
          discover the default policy installed on the running platform.
static void installPolicyOnJVM()
          install the jGuardPolicy if the default policy of the platform is not a jGuardPolicy instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GNU_JAVA_SECURITY_POLICY_FILE

public static final java.lang.String GNU_JAVA_SECURITY_POLICY_FILE
See Also:
Constant Field Values

SUN_SECURITY_PROVIDER_POLICY_FILE

public static final java.lang.String SUN_SECURITY_PROVIDER_POLICY_FILE
See Also:
Constant Field Values
Constructor Detail

PolicyHelper

public PolicyHelper()
Method Detail

installPolicyOnJVM

public static void installPolicyOnJVM()
install the jGuardPolicy if the default policy of the platform is not a jGuardPolicy instance.


findDefaultPolicy

public static java.lang.Class findDefaultPolicy()
discover the default policy installed on the running platform.

Returns:
defaultPolicy class


Copyright © 2004-2009. All Rights Reserved.