Jaas.policyManagement
Class KAoSPolicyProvider

java.lang.Object
  extended by java.security.Policy
      extended by sun.security.provider.PolicyFile
          extended by Jaas.policyManagement.KAoSPolicyProvider

public class KAoSPolicyProvider
extends sun.security.provider.PolicyFile

This class extends the behaviour of the default policy provider. It assigns a KAoSPermission to any Subject. To install it, please change the line policy.provider=sun.security.provider.PolicyProvider in the java.security file (( file: [path-JDK]\jre\lib\security\java.security)) wiht the following line: policy.provider=Jaas.policyManagement.KAoSPolicyProvider


Constructor Summary
KAoSPolicyProvider()
           
 
Method Summary
 java.security.PermissionCollection getPermissions(java.security.CodeSource codesource)
           
 java.security.PermissionCollection getPermissions(java.security.ProtectionDomain protectiondomain)
           
 void refresh()
           
 
Methods inherited from class sun.security.provider.PolicyFile
getSignerCertificates, implies
 
Methods inherited from class java.security.Policy
getPolicy, setPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KAoSPolicyProvider

public KAoSPolicyProvider()
Method Detail

getPermissions

public java.security.PermissionCollection getPermissions(java.security.CodeSource codesource)
Overrides:
getPermissions in class sun.security.provider.PolicyFile

getPermissions

public java.security.PermissionCollection getPermissions(java.security.ProtectionDomain protectiondomain)
Overrides:
getPermissions in class sun.security.provider.PolicyFile

refresh

public void refresh()
Overrides:
refresh in class sun.security.provider.PolicyFile