org.gcube.common.core.security
Interface GCUBEClientSecurityManager

All Superinterfaces:
GCUBESecurityManager
All Known Implementing Classes:
GCUBECredentialAdder

public interface GCUBEClientSecurityManager
extends GCUBESecurityManager

An extension of GCUBESecurityManager that provides methods for standalone clients to manages security configuration of outgoing messages

Author:
Ciro Formisano (ENG)

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.gcube.common.core.security.GCUBESecurityManager
GCUBESecurityManager.AuthMethod, GCUBESecurityManager.AuthMode, GCUBESecurityManager.DelegationMode
 
Field Summary
static String IDENTITY
           
 
Method Summary
 void disableSecurityStatusEnforcement()
          the security status is established by the configuration file of the GHN in client mode
 void forceSecurityDisabled()
          forces the security to not run in spite of the client configuration files
 void forceSecurityEnabled()
          forces the security to run in spite of the client configuration files
 SecurityCredentials getClientBaseCredentials()
          Provides the default credentials of the security manager (they could be the credentials of the GHN in client mode, but this is not mandatory)
 void setDefaultIdentityParameter(String identity)
          Sets a single default identity parameter
 void setIdentityParameters(Map<String,String> parameters)
          Sets a map of identity parameters
 
Methods inherited from interface org.gcube.common.core.security.GCUBESecurityManager
getCredentials, isSecurityEnabled, setAuthMethod, setSecurity, useCredentials, useCredentials, useCredentials
 

Field Detail

IDENTITY

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

setIdentityParameters

void setIdentityParameters(Map<String,String> parameters)
                           throws Exception
Sets a map of identity parameters

Parameters:
parameters - the identity parameters
Throws:
Exception - if something doesn't work in the configuration

setDefaultIdentityParameter

void setDefaultIdentityParameter(String identity)
                                 throws Exception
Sets a single default identity parameter

Parameters:
identity - the identity
Throws:
Exception - if something doesn't work in the configuration

forceSecurityEnabled

void forceSecurityEnabled()
forces the security to run in spite of the client configuration files


forceSecurityDisabled

void forceSecurityDisabled()
forces the security to not run in spite of the client configuration files


disableSecurityStatusEnforcement

void disableSecurityStatusEnforcement()
the security status is established by the configuration file of the GHN in client mode


getClientBaseCredentials

SecurityCredentials getClientBaseCredentials()
Provides the default credentials of the security manager (they could be the credentials of the GHN in client mode, but this is not mandatory)

Returns:
the default credentials


Copyright © 2012. All Rights Reserved.