MongoDB Java Driver legacy all-in-one JAR providing comprehensive database connectivity for Java applications with synchronous APIs, CRUD operations, aggregation, GridFS, change streams, and authentication support
—
Comprehensive authentication mechanisms including SCRAM, X.509 certificates, Kerberos, and client-side field-level encryption for secure MongoDB deployments.
public final class MongoCredential {
public static MongoCredential createCredential(String userName, String database, char[] password);
public static MongoCredential createScramSha1Credential(String userName, String source, char[] password);
public static MongoCredential createScramSha256Credential(String userName, String source, char[] password);
public static MongoCredential createMongoX509Credential(String userName);
public static MongoCredential createGSSAPICredential(String userName);
public String getUserName();
public String getSource();
public AuthenticationMechanism getMechanism();
}
public interface ClientEncryption extends Closeable {
BsonBinary encrypt(BsonValue value, EncryptOptions options);
BsonValue decrypt(BsonBinary encryptedValue);
BsonBinary createDataKey(String kmsProvider);
}[Full authentication and security documentation would follow...]
Install with Tessl CLI
npx tessl i tessl/maven-org-mongodb--mongo-java-driver