issrg.pba
Class DefaultRiskAssessment

java.lang.Object
  extended by issrg.pba.DefaultRiskAssessment
All Implemented Interfaces:
CredentialsService, RiskAssessment

public class DefaultRiskAssessment
extends java.lang.Object
implements RiskAssessment


Constructor Summary
DefaultRiskAssessment()
           
 
Method Summary
 boolean assessRisk(Subject user, Target target, Action action)
           
 void service(Subject user)
          This method provides the required service.
 void service(Subject user, Target target, Action action)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRiskAssessment

public DefaultRiskAssessment()
Method Detail

assessRisk

public boolean assessRisk(Subject user,
                          Target target,
                          Action action)
Specified by:
assessRisk in interface RiskAssessment

service

public void service(Subject user,
                    Target target,
                    Action action)
             throws PbaException
Specified by:
service in interface CredentialsService
Throws:
PbaException

service

public void service(Subject user)
             throws PbaException
Description copied from interface: CredentialsService
This method provides the required service. It should always throw an exception if the subject is not suitable for use.

The method is always called at decision time and the thrown exception, if any, will be passed on to the AEF.

Specified by:
service in interface CredentialsService
Parameters:
user - is the subject that contains the credentials on which the service is exerted
Throws:
PbaException - in case the credentials cannot be used