kaos.policy.guard
Class KAoSSecurityException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by java.lang.SecurityException
                  extended by kaos.policy.guard.KAoSSecurityException
All Implemented Interfaces:
java.io.Serializable

public class KAoSSecurityException
extends java.lang.SecurityException

KAoSSecurityException defines an exception to be thrown by the Guard if there is no permission ot perform a given action

See Also:
Serialized Form

Field Summary
 boolean authorizationCheckInterupted
          Flag indicating if the authorization check was interrupted and thus the negative authorizaton was returned
 boolean defaultAuthorization
          Flag indicating if the default authorization was used
 java.lang.String forbiddingPolicyId
          Policy id, which caused the exception
 
Constructor Summary
KAoSSecurityException()
          Constructs a new KAoSSecurityException with no detail message.
KAoSSecurityException(java.lang.String s)
          Constructs a new KAoSSecurityException with a detail message.
 
Method Summary
 java.util.Vector getAllForbiddingPolicies()
           
 java.lang.String getFirstForbiddingPolicy()
          get the first forbidding policy id from the vector
 void setForbiddingPolicyIDs(java.util.Vector v)
          add a list of all A- policies forbidding an action
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

forbiddingPolicyId

public java.lang.String forbiddingPolicyId
Policy id, which caused the exception


defaultAuthorization

public boolean defaultAuthorization
Flag indicating if the default authorization was used


authorizationCheckInterupted

public boolean authorizationCheckInterupted
Flag indicating if the authorization check was interrupted and thus the negative authorizaton was returned

Constructor Detail

KAoSSecurityException

public KAoSSecurityException()
Constructs a new KAoSSecurityException with no detail message.


KAoSSecurityException

public KAoSSecurityException(java.lang.String s)
Constructs a new KAoSSecurityException with a detail message. A detail message is a String that describes the exception.

Method Detail

setForbiddingPolicyIDs

public void setForbiddingPolicyIDs(java.util.Vector v)
add a list of all A- policies forbidding an action


getFirstForbiddingPolicy

public java.lang.String getFirstForbiddingPolicy()
get the first forbidding policy id from the vector


getAllForbiddingPolicies

public java.util.Vector getAllForbiddingPolicies()