or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

Files

docs

aggregation.mdauthentication-security.mdbson-types.mdchange-streams.mdcollection-operations.mdconfiguration.mdconnection-management.mddatabase-operations.mdgridfs.mdindex.mdquery-building.mdsessions-transactions.md

authentication-security.mddocs/

0

# Authentication & Security

1

2

Comprehensive authentication mechanisms including SCRAM, X.509 certificates, Kerberos, and client-side field-level encryption for secure MongoDB deployments.

3

4

## Capabilities

5

6

### MongoCredential

7

8

```java { .api }

9

public final class MongoCredential {

10

public static MongoCredential createCredential(String userName, String database, char[] password);

11

public static MongoCredential createScramSha1Credential(String userName, String source, char[] password);

12

public static MongoCredential createScramSha256Credential(String userName, String source, char[] password);

13

public static MongoCredential createMongoX509Credential(String userName);

14

public static MongoCredential createGSSAPICredential(String userName);

15

16

public String getUserName();

17

public String getSource();

18

public AuthenticationMechanism getMechanism();

19

}

20

21

public interface ClientEncryption extends Closeable {

22

BsonBinary encrypt(BsonValue value, EncryptOptions options);

23

BsonValue decrypt(BsonBinary encryptedValue);

24

BsonBinary createDataKey(String kmsProvider);

25

}

26

```

27

28

*[Full authentication and security documentation would follow...]*