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

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

public class GCUBEAuthzChainAuthorizationController
extends Object
implements GCUBEServiceAuthorizationController

Authorization controller based on the authorization chain configured in the security descriptor

Author:
Ciro Formisano (ENG)

Field Summary
protected  GCUBELog logger
          Object logger.
 
Fields inherited from interface org.gcube.common.core.security.GCUBEServiceSecurityController
CONTEXT, HEADERS, MESSAGE_CONTEXT
 
Constructor Summary
GCUBEAuthzChainAuthorizationController()
           
 
Method Summary
 void authoriseCall(Map<String,Object> authzMap)
          Checks if the call is authorized
 void initialise(GCUBEServiceContext ctxt, GCUBEServiceSecurityManager securityManager)
          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
 

Field Detail

logger

protected GCUBELog logger
Object logger.

Constructor Detail

GCUBEAuthzChainAuthorizationController

public GCUBEAuthzChainAuthorizationController()
Method Detail

initialise

public void initialise(GCUBEServiceContext ctxt,
                       GCUBEServiceSecurityManager securityManager)
                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> authzMap)
                   throws GCUBEException
Description copied from interface: GCUBEServiceAuthorizationController
Checks if the call is authorized

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

isSecurityEnabled

public boolean isSecurityEnabled()

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


Copyright © 2013. All Rights Reserved.