|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.security.impl.GCUBECredentialAdder
public class GCUBECredentialAdder
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.gcube.common.core.security.GCUBESecurityManager |
|---|
GCUBESecurityManager.AuthMethod, GCUBESecurityManager.AuthMode, GCUBESecurityManager.DelegationMode |
| Field Summary |
|---|
| Fields inherited from interface org.gcube.common.core.security.GCUBEClientSecurityManager |
|---|
IDENTITY |
| Constructor Summary | |
|---|---|
GCUBECredentialAdder()
|
|
| 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) |
SecurityCredentials |
getCredentials()
It returns the credentials for outgoing calls currently set in the current thread. |
boolean |
isSecurityEnabled()
Indicates whether the manager is operating in a secure context. |
void |
setAuthMethod(GCUBESecurityManager.AuthMethod m)
Adds an authentication method to be used in this security context |
void |
setDefaultIdentityParameter(String identity)
Sets a single default identity parameter |
void |
setIdentityParameters(Map<String,String> parameters)
Sets a map of identity parameters |
void |
setSecurity(Remote s,
GCUBESecurityManager.AuthMode e,
GCUBESecurityManager.DelegationMode d)
If security is enabled, sets the desired level of encryption and the mode of credential delegation on the stub of a remote porttype. |
void |
useCredentials(GSSCredential credentials)
Deprecated. |
void |
useCredentials(SecurityCredentials credentials)
If security is enabled, it sets given credentials for outgoing calls in the current thread. |
void |
useCredentials(Thread thread,
SecurityCredentials... credentials)
If security is enabled, it sets given credentials for outgoing calls in a given thread. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GCUBECredentialAdder()
| Method Detail |
|---|
public void setIdentityParameters(Map<String,String> parameters)
throws Exception
GCUBEClientSecurityManager
setIdentityParameters in interface GCUBEClientSecurityManagerparameters - the identity parameters
Exception - if something doesn't work in the configuration
public void setDefaultIdentityParameter(String identity)
throws Exception
GCUBEClientSecurityManager
setDefaultIdentityParameter in interface GCUBEClientSecurityManageridentity - the identity
Exception - if something doesn't work in the configurationpublic void forceSecurityEnabled()
GCUBEClientSecurityManager
forceSecurityEnabled in interface GCUBEClientSecurityManagerpublic void forceSecurityDisabled()
GCUBEClientSecurityManager
forceSecurityDisabled in interface GCUBEClientSecurityManagerpublic void disableSecurityStatusEnforcement()
GCUBEClientSecurityManager
disableSecurityStatusEnforcement in interface GCUBEClientSecurityManagerpublic SecurityCredentials getClientBaseCredentials()
GCUBEClientSecurityManager
getClientBaseCredentials in interface GCUBEClientSecurityManagerpublic boolean isSecurityEnabled()
GCUBESecurityManager
isSecurityEnabled in interface GCUBESecurityManagertrue if security is enabled, false otherwise.
@Deprecated
public void useCredentials(GSSCredential credentials)
throws Exception
useCredentials in interface GCUBESecurityManagercredentials - the credentials.
Exception - if security is enabled, but credentials are corrupt.
public void useCredentials(SecurityCredentials credentials)
throws Exception
GCUBESecurityManager
useCredentials in interface GCUBESecurityManagercredentials - the credentials.
Exception - if security is enabled, but credentials are corrupt.
public void useCredentials(Thread thread,
SecurityCredentials... credentials)
throws Exception
GCUBESecurityManager
useCredentials in interface GCUBESecurityManagerthread - the thread.credentials - (optional) the credentials. If omitted, it delegates the credentials used for
the current thread to the given thread.
Exception - if security is enabled, but credentials are corrupt.public SecurityCredentials getCredentials()
GCUBESecurityManager
getCredentials in interface GCUBESecurityManager
public void setSecurity(Remote s,
GCUBESecurityManager.AuthMode e,
GCUBESecurityManager.DelegationMode d)
throws Exception
GCUBESecurityManager
setSecurity in interface GCUBESecurityManagers - the stub.e - the encryption level.d - the delegation mode.
Exception - if the settings could not be enforced.public void setAuthMethod(GCUBESecurityManager.AuthMethod m)
GCUBESecurityManager
setAuthMethod in interface GCUBESecurityManagerm - the authentication method
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||