public class GCUBECredentialAdder extends Object implements GCUBEClientSecurityManager
GCUBESecurityManager.AuthMethod, GCUBESecurityManager.AuthMode, GCUBESecurityManager.DelegationModeIDENTITY| Constructor and Description |
|---|
GCUBECredentialAdder() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public void setIdentityParameters(Map<String,String> parameters) throws Exception
GCUBEClientSecurityManagersetIdentityParameters in interface GCUBEClientSecurityManagerparameters - the identity parametersException - if something doesn't work in the configurationpublic void setDefaultIdentityParameter(String identity) throws Exception
GCUBEClientSecurityManagersetDefaultIdentityParameter in interface GCUBEClientSecurityManageridentity - the identityException - if something doesn't work in the configurationpublic void forceSecurityEnabled()
GCUBEClientSecurityManagerforceSecurityEnabled in interface GCUBEClientSecurityManagerpublic void forceSecurityDisabled()
GCUBEClientSecurityManagerforceSecurityDisabled in interface GCUBEClientSecurityManagerpublic void disableSecurityStatusEnforcement()
GCUBEClientSecurityManagerdisableSecurityStatusEnforcement in interface GCUBEClientSecurityManagerpublic SecurityCredentials getClientBaseCredentials()
GCUBEClientSecurityManagergetClientBaseCredentials in interface GCUBEClientSecurityManagerpublic boolean isSecurityEnabled()
GCUBESecurityManagerisSecurityEnabled 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
GCUBESecurityManageruseCredentials in interface GCUBESecurityManagercredentials - the credentials.Exception - if security is enabled, but credentials are corrupt.public void useCredentials(Thread thread, SecurityCredentials... credentials) throws Exception
GCUBESecurityManageruseCredentials 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()
GCUBESecurityManagergetCredentials in interface GCUBESecurityManagerpublic void setSecurity(Remote s, GCUBESecurityManager.AuthMode e, GCUBESecurityManager.DelegationMode d) throws Exception
GCUBESecurityManagersetSecurity 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)
GCUBESecurityManagersetAuthMethod in interface GCUBESecurityManagerm - the authentication methodCopyright © 2015. All Rights Reserved.