issrg.pba.rbac
Class SimpleCredentialsService

java.lang.Object
  extended by issrg.pba.rbac.SimpleCredentialsService
All Implemented Interfaces:
CredentialsService

public class SimpleCredentialsService
extends java.lang.Object
implements CredentialsService

Author:
Rune Bjerk

Constructor Summary
SimpleCredentialsService()
           
 
Method Summary
 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

SimpleCredentialsService

public SimpleCredentialsService()
Method Detail

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