org.gcube.security.soa3.connector
Interface GCUBESecurityController

All Known Implementing Classes:
SOA3SecurityController

public interface GCUBESecurityController

This interface will replace GCUBESecurityController, GCUBEServiceAuthenticationController and GCUBEServiceAuthorizationController to manage the authentication and authorization control. Currently in the security library there is an implementation of GCUBESecurityController that will supporth both the paradigms for a certain period: in the next release the old security library will be progressively abandoned

Author:
Ciro Formisano (ENG)

Field Summary
static String CREDENTIAL_PROPAGATION_POLICY
           
static String PEER_SUBJECT
           
static String SECURITY_ENABLED
           
static String SERVER_URL
           
static String SERVICE_INSTANCE
           
static String SERVICE_NAME
           
static String SERVICE_STRING
           
 
Method Summary
 boolean checkAccess(Map<String,Object> parameters)
          Checks the access rights (authentication and authorization)
 void init(Map<String,String> parameters)
          Inits the controller
 boolean isSecurityEnabled()
           
 void setSecurityEnabled(boolean securityEnabled)
           
 

Field Detail

SECURITY_ENABLED

static final String SECURITY_ENABLED
See Also:
Constant Field Values

SERVER_URL

static final String SERVER_URL
See Also:
Constant Field Values

CREDENTIAL_PROPAGATION_POLICY

static final String CREDENTIAL_PROPAGATION_POLICY
See Also:
Constant Field Values

SERVICE_NAME

static final String SERVICE_NAME
See Also:
Constant Field Values

PEER_SUBJECT

static final String PEER_SUBJECT
See Also:
Constant Field Values

SERVICE_STRING

static final String SERVICE_STRING
See Also:
Constant Field Values

SERVICE_INSTANCE

static final String SERVICE_INSTANCE
See Also:
Constant Field Values
Method Detail

init

void init(Map<String,String> parameters)
Inits the controller

Parameters:
serviceContext -

checkAccess

boolean checkAccess(Map<String,Object> parameters)
Checks the access rights (authentication and authorization)

Parameters:
parameters - all the needed parameters
Returns:
true if the access is granted, false otherwise

isSecurityEnabled

boolean isSecurityEnabled()
Returns:

setSecurityEnabled

void setSecurityEnabled(boolean securityEnabled)
Parameters:
securityEnabled -


Copyright © 2013. All Rights Reserved.