Jaas.policyManagement
Class KAoSPermission

java.lang.Object
  extended by java.security.Permission
      extended by Jaas.policyManagement.KAoSPermission
All Implemented Interfaces:
java.io.Serializable, java.security.Guard

public class KAoSPermission
extends java.security.Permission

KAoSPermission are used instead of Java Permission to control authenticated agents (by JAAS) by using the KAoS policies. In particular: (1) An instance of this class is assigned to any Subject and contains a reference to the Subject itself, otherwise no-more accessible (it is hided and managed by the java.security.AccessControlContext) (2) An istance of this class is created by the KAoSSecurityManager at any trigger of a security check When the Java AccessController compares the two permission it calls the method implies(). This method query the Guard to see if the action is authorized and replies accordingly. The Guard is queried by using the socket to the KAoSproxyToJaas that is managed by the KAoSSecurityManager

See Also:
Serialized Form

Constructor Summary
KAoSPermission()
           
KAoSPermission(java.util.HashSet plist)
           
KAoSPermission(java.security.Permission p)
           
KAoSPermission(javax.security.auth.Subject s)
           
KAoSPermission(javax.security.auth.Subject s, java.security.CodeSource cs)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getActions()
           
 java.security.Permission getJavaPermission()
           
 int hashCode()
           
 boolean implies(java.security.Permission p)
           
 
Methods inherited from class java.security.Permission
checkGuard, getName, newPermissionCollection, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

KAoSPermission

public KAoSPermission()

KAoSPermission

public KAoSPermission(javax.security.auth.Subject s)

KAoSPermission

public KAoSPermission(java.util.HashSet plist)

KAoSPermission

public KAoSPermission(javax.security.auth.Subject s,
                      java.security.CodeSource cs)

KAoSPermission

public KAoSPermission(java.security.Permission p)
Method Detail

implies

public boolean implies(java.security.Permission p)
Specified by:
implies in class java.security.Permission

getActions

public java.lang.String getActions()
Specified by:
getActions in class java.security.Permission

getJavaPermission

public java.security.Permission getJavaPermission()

hashCode

public int hashCode()
Specified by:
hashCode in class java.security.Permission

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in class java.security.Permission