Class BindProfile.BoundSession

java.lang.Object
com.isode.dsapi.profile.BindProfile.BoundSession
Enclosing class:
BindProfile

public static class BindProfile.BoundSession extends Object
Convenience class used to encapsulate the result of creating and binding to a Directory. The sessionCertificates field will be non-null if the server presented certificates which were not specifically marked as trusted in the bind profile. So callers can check for the field being null to see whether additional verification is required.
  • Field Details

    • session

      public final IsodeDirectorySession session
      The session object resulting from a bind operation.
    • bindIndication

      public final Indication bindIndication
      The indication returned by the bind operation.
    • isServerIdOk

      public boolean isServerIdOk
    • verifyResult

      public VerifyResult verifyResult
  • Method Details

    • getUnverifiedCerts

      public List<SSLCertificate> getUnverifiedCerts()
      Get unverified certificates from the session
      Returns:
      unverified certificates if any, not null but can be empty
      Since:
      16.3
    • getServerCert

      public SSLCertificate getServerCert()
      Get the server certificate if the session received unverified certificates from the server after the bind
      Returns:
      server certificate, can be null if no certificates were presented by the server
      Since:
      16.3