kaos.core.csi.policy
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.core.csi.policy.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

Author:
KAoS Team $Revision: 1.3 $
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
static java.lang.String OBLIGATIONS_FAILED_ACTOR_NOT_LOCATABLE
           
static java.lang.String OBLIGATIONS_FAILED_INCONSISTENT_STATUS
           
static java.lang.String OBLIGATIONS_FAILED_SERVICE_FAILURE
           
static java.lang.String OBLIGATIONS_NOT_ATTEMPTED
           
 
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
 java.lang.String getReasonForUnfulfilledObligations()
           
 java.util.List getUnfulfilledObligations()
           
 void setForbiddingPolicyIDs(java.util.Vector v)
          add a list of all A- policies forbidding an action
 void setReasonForUnfulfilledObligations(java.lang.String reason)
           
 void setUnfulfilledObligations(java.util.List obligations)
           
 
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

OBLIGATIONS_NOT_ATTEMPTED

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

OBLIGATIONS_FAILED_INCONSISTENT_STATUS

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

OBLIGATIONS_FAILED_SERVICE_FAILURE

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

OBLIGATIONS_FAILED_ACTOR_NOT_LOCATABLE

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

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()

getUnfulfilledObligations

public java.util.List getUnfulfilledObligations()

setUnfulfilledObligations

public void setUnfulfilledObligations(java.util.List obligations)

getReasonForUnfulfilledObligations

public java.lang.String getReasonForUnfulfilledObligations()

setReasonForUnfulfilledObligations

public void setReasonForUnfulfilledObligations(java.lang.String reason)


Copyright © 2005 IHMC All Rights Reserved.