org.gcube.common.core.security.impl
Class GCUBESimpleServiceAuthController

java.lang.Object
  extended by org.gcube.common.core.security.impl.GCUBESimpleServiceAuthController
All Implemented Interfaces:
GCUBEServiceAuthenticationController, GCUBEServiceAuthorizationController, GCUBEServiceSecurityController

public class GCUBESimpleServiceAuthController
extends Object
implements GCUBEServiceAuthenticationController, GCUBEServiceAuthorizationController

Does Nothing

Author:
Ciro Formisano

Field Summary
 
Fields inherited from interface org.gcube.common.core.security.GCUBEServiceSecurityController
CONTEXT, HEADERS, MESSAGE_CONTEXT
 
Constructor Summary
GCUBESimpleServiceAuthController()
           
 
Method Summary
 void authenticateCall(Map<String,Object> parameters)
          Authenticates the call
 void authoriseCall(Map<String,Object> parameters)
          Checks if the call is authorized
 void initialise(GCUBEServiceContext ctxt, GCUBEServiceSecurityManager securityConfigurationManager)
          Initialise the manager with the context of the associated service.
 boolean isSecurityEnabled()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GCUBESimpleServiceAuthController

public GCUBESimpleServiceAuthController()
Method Detail

initialise

public void initialise(GCUBEServiceContext ctxt,
                       GCUBEServiceSecurityManager securityConfigurationManager)
                throws Exception
Description copied from interface: GCUBEServiceSecurityController
Initialise the manager with the context of the associated service.

Specified by:
initialise in interface GCUBEServiceSecurityController
Parameters:
ctxt - the context.
Throws:
Exception

authoriseCall

public void authoriseCall(Map<String,Object> parameters)
                   throws GCUBEException
Description copied from interface: GCUBEServiceAuthorizationController
Checks if the call is authorized

Specified by:
authoriseCall in interface GCUBEServiceAuthorizationController
Parameters:
parameters - parameters for the authorization process
Throws:
GCUBEException - if the call is not authorized or if there are other problems

authenticateCall

public void authenticateCall(Map<String,Object> parameters)
                      throws GCUBEException
Description copied from interface: GCUBEServiceAuthenticationController
Authenticates the call

Specified by:
authenticateCall in interface GCUBEServiceAuthenticationController
Parameters:
parameters - the parameters of the call
Throws:
GCUBEException - if the call is not authenticated or if there are problems

isSecurityEnabled

public boolean isSecurityEnabled()
Specified by:
isSecurityEnabled in interface GCUBEServiceSecurityController
Returns:
true if the security is enabled for this security descriptor


Copyright © 2012. All Rights Reserved.