|  | 
|  | 
| e-docs > Tuxedo > Using Security in CORBA Applications > Automation Security Reference | 
| Using Security in CORBA Applications 
 | 
DISecurityLevel2_Current.set_credentials
Synopsis
Sets credentials type.
MIDL Mapping
HRESULT set_credentials(
  [in] Security_CredentialType cred_type,
  [in] DISecurityLevel2_Credentials* cred,
  [in,out,optional] VARIANT* exceptionInfo);
Automation Mapping
Sub set_credentials(cred_type As Security_CredentialType,
                      cred As DISecurityLevel2_Credentials,
                        [exceptionInfo])
Description
This method can be used only to set SecInvocationCredentials; otherwise, -set_credentials raises CORBA::BAD_PARAM. The credentials must have been obtained from a previous call to DISecurityLevel2_Current.get_credentials.
Arguments
Return Values
None.
|   |   |   | 
|  | ||
|  |  |  | 
|  |  |  | 
|  | ||