You are viewing limited content. For full access, please sign in.

Question

Question

Server.IsConnectionSecure vs RepositoryRegistration.IsSecure

SDK
asked on May 9, 2024

When connecting over TLS with the SDK, is there a difference between using Server.IsConnectionSecure vs RepositoryRegistration.IsSecure ? Should they both be explicitly set, or does setting one automatically set the other?

0 0

Answer

SELECTED ANSWER
replied on May 9, 2024

It really depends on your code and how your instances of those objects are related. If you are passing the Server object into the RepositoryRegistration constructor, then the value is literally copied from one to the other.

0 0
replied on May 9, 2024

Thank you, I confirmed that the value is passed along from the Server object to the RepositoryRegistration object in my code.


        Server serv = new Server(_serverName, _port);
        if (_useTLS) serv.IsConnectionSecure = true;   // Require SSL/TLS

        RepositoryRegistration rep = new RepositoryRegistration(serv, _repName);
        Session session = new Session();

        // session.IsSecure is initially false

        session.LogIn(_lfUser, _lfPwd, rep);

        // session.IsSecure is now true

 

0 0

Replies

You are not allowed to reply in this post.
You are not allowed to follow up in this post.

Sign in to reply to this post.