- All Known Implementing Classes:
Subjectwith which authentication requests are executed. For each authentication request, the driver will call the
getSubject()method and execute the SASL conversation via a call to
Implementations of this interface will typically cache a
Subject instance for some period of time before replacing it with a
different instance, say, after the expiration time of a ticket has passed.
Applications should register an instance of a class implementation this interface as a mechanism property of a
via a call to
MongoCredential.withMechanismProperty(String, Object) using the key
If use of the same
Subject for the lifetime of the application is sufficient, an application can simply create a single
Subject and associate it with a
MongoCredential as a mechanism property using the key
getSubjectGets the Subject to use for an authentication request.
Subject, which may be null
LoginException- a login exception