public class MongoCredentialWithCache extends Object
Constructor and Description |
---|
MongoCredentialWithCache(MongoCredential credential) |
MongoCredentialWithCache(MongoCredential credential,
com.mongodb.internal.connection.MongoCredentialWithCache.Cache cache) |
Modifier and Type | Method and Description |
---|---|
AuthenticationMechanism |
getAuthenticationMechanism() |
MongoCredential |
getCredential() |
<T> T |
getFromCache(Object key,
Class<T> clazz) |
void |
putInCache(Object key,
Object value) |
MongoCredentialWithCache |
withMechanism(AuthenticationMechanism mechanism) |
static List<MongoCredentialWithCache> |
wrapCredentialList(List<MongoCredential> credentialList) |
public MongoCredentialWithCache(MongoCredential credential)
public MongoCredentialWithCache(MongoCredential credential, com.mongodb.internal.connection.MongoCredentialWithCache.Cache cache)
public static List<MongoCredentialWithCache> wrapCredentialList(List<MongoCredential> credentialList)
public MongoCredentialWithCache withMechanism(AuthenticationMechanism mechanism)
public AuthenticationMechanism getAuthenticationMechanism()
public MongoCredential getCredential()
Copyright © 2010 - 2020 Adobe. All Rights Reserved