Package com.unboundid.ldap.sdk
Enum SASLQualityOfProtection
- All Implemented Interfaces:
Serializable,Comparable<SASLQualityOfProtection>,java.lang.constant.Constable
@ThreadSafety(level=COMPLETELY_THREADSAFE)
public enum SASLQualityOfProtection
extends Enum<SASLQualityOfProtection>
This enum defines the set of supported SASL quality of protection values.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe quality of protection value that indicates that only authentication is to be performed, with no integrity or confidentiality protection for subsequent communication.The quality of protection value that indicates that confidentiality protection will be provided for subsequent communication after authentication has completed.The quality of protection value that indicates that integrity protection will be provided for subsequent communication after authentication has completed. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<SASLQualityOfProtection> Decodes the provided string as a comma-delimited list of SASL quality of protection values.static SASLQualityOfProtectionRetrieves the SASL quality of protection value with the given name.toString()Retrieves a string representation of this SASL quality of protection.static StringtoString(List<SASLQualityOfProtection> qopValues) Retrieves a string representation of the provided list of quality of protection values, as may be provided to a JavaSaslClient.static SASLQualityOfProtectionReturns the enum constant of this type with the specified name.static SASLQualityOfProtection[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUTH
The quality of protection value that indicates that only authentication is to be performed, with no integrity or confidentiality protection for subsequent communication. -
AUTH_INT
The quality of protection value that indicates that integrity protection will be provided for subsequent communication after authentication has completed. While integrity protection does not ensure that third-party observers cannot decipher communication between the client and server, it does ensure that the communication cannot be altered in an undetectable manner. -
AUTH_CONF
The quality of protection value that indicates that confidentiality protection will be provided for subsequent communication after authentication has completed. This ensures that third-party observers will not be able to decipher communication between the client and server (i.e., that the communication will be encrypted).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
forName
Retrieves the SASL quality of protection value with the given name.- Parameters:
name- The name of the SASL quality of protection value to retrieve. It must not benull.- Returns:
- The requested SASL quality of protection value, or
nullif there is no value with the provided name.
-
decodeQoPList
@NotNull public static List<SASLQualityOfProtection> decodeQoPList(@Nullable String s) throws LDAPException Decodes the provided string as a comma-delimited list of SASL quality of protection values.- Parameters:
s- The string to be decoded.- Returns:
- The decoded list of SASL quality of protection values. It will
not be
nullbut may be empty if the provided string wasnullor empty. - Throws:
LDAPException- If the provided string cannot be decoded as a valid list of SASL quality of protection values.
-
toString
Retrieves a string representation of this SASL quality of protection.- Overrides:
toStringin classEnum<SASLQualityOfProtection>- Returns:
- A string representation of this SASL quality of protection.
-
toString
Retrieves a string representation of the provided list of quality of protection values, as may be provided to a JavaSaslClient.- Parameters:
qopValues- The list of values for which to create the string representation.- Returns:
- A string representation of the provided list of quality of
protection values, as may be provided to a Java
SaslClient.
-