org.gcube.security.soa3.connector.impl
Class SOA3SecurityController

java.lang.Object
  extended by org.gcube.security.soa3.connector.impl.SOA3SecurityController
All Implemented Interfaces:
GCUBESecurityController

public class SOA3SecurityController
extends Object
implements GCUBESecurityController

Implementation of the security controller for using the SOA3 Security Framework

Author:
Ciro Formisano (ENG)

Field Summary
 
Fields inherited from interface org.gcube.security.soa3.connector.GCUBESecurityController
CREDENTIAL_PROPAGATION_POLICY, PEER_SUBJECT, SECURITY_ENABLED, SERVER_URL, SERVICE_INSTANCE, SERVICE_NAME, SERVICE_STRING
 
Constructor Summary
SOA3SecurityController()
           
 
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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOA3SecurityController

public SOA3SecurityController()
Method Detail

init

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

Specified by:
init in interface GCUBESecurityController

checkAccess

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

Specified by:
checkAccess in interface GCUBESecurityController
Parameters:
parameters - all the needed parameters
Returns:
true if the access is granted, false otherwise

isSecurityEnabled

public boolean isSecurityEnabled()
Specified by:
isSecurityEnabled in interface GCUBESecurityController
Returns:

setSecurityEnabled

public void setSecurityEnabled(boolean securityEnabled)
Specified by:
setSecurityEnabled in interface GCUBESecurityController


Copyright © 2013. All Rights Reserved.