Package com.isode.dsapi.profile
Class BindProfile.BoundSession
java.lang.Object
com.isode.dsapi.profile.BindProfile.BoundSession
- Enclosing class:
- BindProfile
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 Summary
FieldsModifier and TypeFieldDescriptionfinal Indication
The indication returned by the bind operation.boolean
final IsodeDirectorySession
The session object resulting from a bind operation. -
Method Summary
Modifier and TypeMethodDescriptionGet the server certificate if the session received unverified certificates from the server after the bindGet unverified certificates from the session
-
Field Details
-
session
The session object resulting from a bind operation. -
bindIndication
The indication returned by the bind operation. -
isServerIdOk
public boolean isServerIdOk -
verifyResult
-
-
Method Details
-
getUnverifiedCerts
Get unverified certificates from the session- Returns:
- unverified certificates if any, not null but can be empty
- Since:
- 16.3
-
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
-