Package org.teiid.mongodb
Enum MongoDBConfiguration.SecurityType
- java.lang.Object
-
- java.lang.Enum<MongoDBConfiguration.SecurityType>
-
- org.teiid.mongodb.MongoDBConfiguration.SecurityType
-
- All Implemented Interfaces:
Serializable,Comparable<MongoDBConfiguration.SecurityType>
- Enclosing interface:
- MongoDBConfiguration
public static enum MongoDBConfiguration.SecurityType extends Enum<MongoDBConfiguration.SecurityType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KerberosMONGODB_CRNoneSCRAM_SHA_1SCRAM_SHA_256X509
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static MongoDBConfiguration.SecurityTypevalueOf(String name)Returns the enum constant of this type with the specified name.static MongoDBConfiguration.SecurityType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
None
public static final MongoDBConfiguration.SecurityType None
-
SCRAM_SHA_256
public static final MongoDBConfiguration.SecurityType SCRAM_SHA_256
-
SCRAM_SHA_1
public static final MongoDBConfiguration.SecurityType SCRAM_SHA_1
-
MONGODB_CR
public static final MongoDBConfiguration.SecurityType MONGODB_CR
-
Kerberos
public static final MongoDBConfiguration.SecurityType Kerberos
-
X509
public static final MongoDBConfiguration.SecurityType X509
-
-
Method Detail
-
values
public static MongoDBConfiguration.SecurityType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (MongoDBConfiguration.SecurityType c : MongoDBConfiguration.SecurityType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MongoDBConfiguration.SecurityType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
-