issrg.gt4
Class PermisAuthorizationService

java.lang.Object
  extended by issrg.gt4.PermisPDP
      extended by issrg.gt4.PermisAuthorizationService
All Implemented Interfaces:
SignatureVerifier

public class PermisAuthorizationService
extends PermisPDP

This is the implementation of the Permis Authz Service which accepts SAMLRequests and returns SAMLResponses.


Field Summary
 
Fields inherited from class issrg.gt4.PermisPDP
GSP_LDAP_AC_KEY, GSP_USE_GRID_SHIB, IDP_PROVIDER_ID_KEY
 
Constructor Summary
PermisAuthorizationService()
           
 
Method Summary
 org.oasis.wsrf.lifetime.DestroyResponse destroy(org.oasis.wsrf.lifetime.Destroy destroyRequest)
          The default method implementation for the GT4 service.
protected  PBAAPI getADF(MessageContext ctx)
          This method gets the configuration parameters from the MessageContext and constructs a PBAAPI out of it.
 org.oasis.wsrf.properties.GetResourcePropertyResponse getResourceProperty(javax.xml.namespace.QName getResourcePropertyRequest)
          This method throws a RemoteException all the time, since no Resources are supported by PermisAuthorization.
 org.oasis.wsrf.properties.QueryResourcePropertiesResponse queryResourceProperties(org.oasis.wsrf.properties.QueryResourceProperties_Element queryResourcePropertiesRequest)
          This method throws a RemoteException all the time, since no Resources are supported by PermisAuthorization.
 Response SAMLRequest(Request req)
          This method specifies the behaviour of the Authorization Service.
 org.oasis.wsrf.properties.SetResourcePropertiesResponse setResourceProperties(org.oasis.wsrf.properties.SetResourceProperties_Element setResourcePropertiesRequest)
          This method throws a org.oasis.wsrf.properties.UnableToModifyResourcePropertyFaultType all the time, since no Resources are supported by PermisAuthorization.
 
Methods inherited from class issrg.gt4.PermisPDP
checkSignature, close, getADF, getAttributes, getPolicy, getPolicyNames, getResponse, initialize, isPermitted, setPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PermisAuthorizationService

public PermisAuthorizationService()
Method Detail

SAMLRequest

public Response SAMLRequest(Request req)
                     throws java.rmi.RemoteException
This method specifies the behaviour of the Authorization Service. The given Request is decoded and passes to PermisRBAC and the decision is encoded as a Response and sent back.

Parameters:
req - - the Request sent by the client
Returns:
Response with the authorisation decision in it
Throws:
java.rmi.RemoteException

getADF

protected PBAAPI getADF(MessageContext ctx)
                 throws InitializeException
This method gets the configuration parameters from the MessageContext and constructs a PBAAPI out of it.

Parameters:
ctx - - the MessageContext with the configuration settings in it
Returns:
instance of PBAAPI
Throws:
InitializeException

destroy

public org.oasis.wsrf.lifetime.DestroyResponse destroy(org.oasis.wsrf.lifetime.Destroy destroyRequest)
                                                throws java.rmi.RemoteException,
                                                       org.oasis.wsrf.lifetime.ResourceNotDestroyedFaultType,
                                                       org.oasis.wsrf.lifetime.ResourceUnknownFaultType
The default method implementation for the GT4 service.

Throws:
java.rmi.RemoteException
org.oasis.wsrf.lifetime.ResourceNotDestroyedFaultType
org.oasis.wsrf.lifetime.ResourceUnknownFaultType

getResourceProperty

public org.oasis.wsrf.properties.GetResourcePropertyResponse getResourceProperty(javax.xml.namespace.QName getResourcePropertyRequest)
                                                                          throws java.rmi.RemoteException,
                                                                                 org.oasis.wsrf.properties.InvalidResourcePropertyQNameFaultType,
                                                                                 org.oasis.wsrf.properties.ResourceUnknownFaultType
This method throws a RemoteException all the time, since no Resources are supported by PermisAuthorization.

Throws:
java.rmi.RemoteException
org.oasis.wsrf.properties.InvalidResourcePropertyQNameFaultType
org.oasis.wsrf.properties.ResourceUnknownFaultType

setResourceProperties

public org.oasis.wsrf.properties.SetResourcePropertiesResponse setResourceProperties(org.oasis.wsrf.properties.SetResourceProperties_Element setResourcePropertiesRequest)
                                                                              throws java.rmi.RemoteException,
                                                                                     org.oasis.wsrf.properties.InvalidResourcePropertyQNameFaultType,
                                                                                     org.oasis.wsrf.properties.UnableToModifyResourcePropertyFaultType,
                                                                                     org.oasis.wsrf.properties.ResourceUnknownFaultType,
                                                                                     org.oasis.wsrf.properties.SetResourcePropertyRequestFailedFaultType,
                                                                                     org.oasis.wsrf.properties.InvalidSetResourcePropertiesRequestContentFaultType
This method throws a org.oasis.wsrf.properties.UnableToModifyResourcePropertyFaultType all the time, since no Resources are supported by PermisAuthorization.

Throws:
java.rmi.RemoteException
org.oasis.wsrf.properties.InvalidResourcePropertyQNameFaultType
org.oasis.wsrf.properties.UnableToModifyResourcePropertyFaultType
org.oasis.wsrf.properties.ResourceUnknownFaultType
org.oasis.wsrf.properties.SetResourcePropertyRequestFailedFaultType
org.oasis.wsrf.properties.InvalidSetResourcePropertiesRequestContentFaultType

queryResourceProperties

public org.oasis.wsrf.properties.QueryResourcePropertiesResponse queryResourceProperties(org.oasis.wsrf.properties.QueryResourceProperties_Element queryResourcePropertiesRequest)
                                                                                  throws java.rmi.RemoteException,
                                                                                         org.oasis.wsrf.properties.InvalidResourcePropertyQNameFaultType,
                                                                                         org.oasis.wsrf.properties.InvalidQueryExpressionFaultType,
                                                                                         org.oasis.wsrf.properties.QueryEvaluationErrorFaultType,
                                                                                         org.oasis.wsrf.properties.ResourceUnknownFaultType,
                                                                                         org.oasis.wsrf.properties.UnknownQueryExpressionDialectFaultType
This method throws a RemoteException all the time, since no Resources are supported by PermisAuthorization.

Throws:
java.rmi.RemoteException
org.oasis.wsrf.properties.InvalidResourcePropertyQNameFaultType
org.oasis.wsrf.properties.InvalidQueryExpressionFaultType
org.oasis.wsrf.properties.QueryEvaluationErrorFaultType
org.oasis.wsrf.properties.ResourceUnknownFaultType
org.oasis.wsrf.properties.UnknownQueryExpressionDialectFaultType