Package com.isode.dsapi
Enum Class DirectorySession.ConnectionState
- All Implemented Interfaces:
Serializable
,Comparable<DirectorySession.ConnectionState>
,Constable
- Enclosing class:
- DirectorySession
Used to report the state of a session: whether and how it is bound.
Values here represent the session's state following the most recent
directory operation, and are updated whenever an operation is performed.
Note that if a network connection is lost, then the session state
will not become CONNECTION_LOST
until the next directory
operation is attempted and the problem detected.
- Since:
- 14.4
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA DirectorySession is currently bound with no authentication.The library has detected that a DirectorySession which was bound has lost its connection.A DirectorySession is currently bound using SASL authentication.A DirectorySession is currently bound using simple authentication.The session state is unknown.A DirectorySession is currently bound using strong authentication.A DirectorySession object exists but no bind operation has yet been attempted.A DirectorySession object which was previously bound has been unbound by the user a by callingDirectorySession.unbind()
.A connection was attempted over a secured connection, but the certificate presented by the server could not be verified, and so the connection was abandoned. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static DirectorySession.ConnectionState[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NOT_YET_CONNECTED
A DirectorySession object exists but no bind operation has yet been attempted. -
CONNECTION_LOST
The library has detected that a DirectorySession which was bound has lost its connection. This typically happens in the case of a network error, or if the directory server has closed the connection. Further operations on this session (apart fromunbind()
) will probably result inNotBoundException
being thrown. -
UNBOUND
A DirectorySession object which was previously bound has been unbound by the user a by callingDirectorySession.unbind()
. -
VERIFICATION_FAILED
A connection was attempted over a secured connection, but the certificate presented by the server could not be verified, and so the connection was abandoned. An application wishing to override this behaviour should useCommonArgs.setDisableVerification(boolean)
to prevent verification, and may useDirectorySession.getSessionCertificates()
to obtain the server's certificates so that it can perform its own verification. -
CONNECTION_ANONYMOUS
A DirectorySession is currently bound with no authentication. -
CONNECTION_SIMPLE
A DirectorySession is currently bound using simple authentication. -
CONNECTION_STRONG
A DirectorySession is currently bound using strong authentication. -
CONNECTION_SASL
A DirectorySession is currently bound using SASL authentication. -
CONNECTION_STATE_UNKNOWN
The session state is unknown.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-