• Alternatively, you can enable security by setting the janeva.security property to true. See (properties chapter) for instructions.Different application servers might have different names for the default realm. You can set the default realm name in the configuration file. When you need to override the default realm set in the configuration file you can set the property in the command line or programmatically as shown above. See “Configuring properties” for more information.Keep in mind that every object on the same server shares the same secure connection. Once the first invocation is completed, any subsequent invocation on the same or other objects located on the same server shares the credentials established with the first invocation. To change the credentials resolve the Sink Properties and set the username and password properties again.More example code is located in the <janeva_install_dir>\examples\Advanced\Security\RemotingUsernameClient directory.The first step is to resolve the VisiBroker for .NET security context on the orb instance. Janeva.Security.Context is the object which exposes the API with which you manipulate the user's identity.Next, to set the user name, password and realm use the Janeva.Security.IdentityWallet class as follows:Different application servers might have different names for the default realm. You can set the default realm name in the configuration file. When you need to override the default realm set in the configuration file you can set the property in the command line or programmatically as shown above. See “Configuring properties” for more information.The last step is to call a Login method on the security context with the wallet:The Janeva.Security.Context object provides different login methods. Please see the VisiBroker for .NET API reference for details.Keep in mind that every object on the same server shares the same secure connection. Once the first invocation is completed, any subsequent invocation on the same or other objects located on the same server shares the credentials established with the first invocation. To change the credentials call Logout and then call Login again.Once you set the credentials with the Login method you can invoke methods on the sever:Once you login to the Janeva.Security.Context the same credentials are used with any subsequent remote invocation:One of the optional certificate attributes is a friendly name. VisiBroker for .NET uses the certificate's friendly name as the identifier to address a particular certificate. If a certificate does not have a friendly name you can set it in the Microsoft Windows Internet Options control panel.Keep in mind that every object on the same server shares the same secure connection. Once the first invocation is completed, any subsequent invocation on the same or other objects located on the same server shares the credentials established with the first invocation. To change the credentials resolve the Sink Properties and set the username and password properties again.More example code is located in the <janeva_install_dir>\examples\Advanced\Security\RemotingCertificateClient directory.The first step is to resolve the VisiBroker for .NET security context on the orb instance. The Janeva.Security.Context is the object which exposes the API with which you manipulate the user's identity.Next, to set the certificate friendly name you need to use the Janeva.Security.CertificateWallet class as follows:The second parameter defines the certificate usage. This parameter is set differently when used for secure server (see “Enabling security for .NET servers”). For details on the other values for this parameter see the VisiBroker for .NET API reference.Last step is to call a Login method on the security context with the wallet:The Janeva.Security.Context object provides different login methods. See the VisiBroker for .NET API reference for details.Keep in mind that every object on the same server shares the same secure connection. Once the first invocation is completed, any subsequent invocation on the same or other objects located on the same server shares the credentials established with the first invocation. To change the credentials call Logout and then call Login again.Once you set the credentials with the Login method you can invoke methods on the object:Once you login to the Janeva.Security.Context the same credentials are used with any subsequent remote invocation.Within an ASP.NET environment, VisiBroker for .NET implicitly detects whether a user is authenticated and passes the user identity as the caller identity to the server side. The peer identity is established explicitly using the VisiBroker for .NET Security API as shown in the examples in “Interoperating with J2EE servers and CORBA servers”.The following is an example of how a configuration file can establish the peer identity for an ASP.NET application. Note that this example is similar to the example in “Using a configuration file for certificate-based authentication”.You can also explicitly set the caller identity with the Janeva.Security.Context.ImportIdentity() API. This allows you to use the trust model outside of the ASP.NET environment. See the VisiBroker for .NET API reference for details about Janeva.Security.Context.ImportIdentity.More example code is located in the <janeva_install_dir>\examples\Advanced\Security\AspNetClient directory.For secure .NET server applications VisiBroker for .NET Security can be enabled on the server side by setting the janeva.security.server property to true. The following is an example of how to set the property in the application configuration file.<server enabled="true" defaultPort="15000">You can set the port which the VisiBroker for .NET server will use for SSL/TSL communication on the server side by setting the janeva.security.server.defaultPort property. See the previous example for how this is done in a configuration file.The first step is to resolve the VisiBroker for .NET security context on the orb instance. The Janeva.Security.Context is the object which exposes the API with which you manipulate the identity.Next, to set the certificate you need to use the Janeva.Security.CertificateWallet class as follows:The last step is to call a Login method on the security context with the wallet:The Janeva.Security.Context object provides different login methods. See the VisiBroker for .NET API reference for details.When using the CORBA-based API configuration method, the certificate needs to be set up before the server starts listening for incoming requests, that is, before calling the CORBA.ORB.Run() method in your code.More example code is located in the <janeva_install_dir>\examples\Advanced\Security\SslServer directory.