@ThreadSafety(level=COMPLETELY_THREADSAFE) public enum SASLQualityOfProtection extends java.lang.Enum<SASLQualityOfProtection>
| Enum Constant | Description |
|---|---|
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_CONF |
The quality of protection value that indicates that confidentiality
protection will be provided for subsequent communication after
authentication has completed.
|
AUTH_INT |
The quality of protection value that indicates that integrity protection
will be provided for subsequent communication after authentication has
completed.
|
| Modifier and Type | Method | Description |
|---|---|---|
static java.util.List<SASLQualityOfProtection> |
decodeQoPList(java.lang.String s) |
Decodes the provided string as a comma-delimited list of SASL quality of
protection values.
|
static SASLQualityOfProtection |
forName(java.lang.String name) |
Retrieves the SASL quality of protection value with the given name.
|
java.lang.String |
toString() |
Retrieves a string representation of this SASL quality of protection.
|
static java.lang.String |
toString(java.util.List<SASLQualityOfProtection> qopValues) |
Retrieves a string representation of the provided list of quality of
protection values, as may be provided to a Java
SaslClient. |
static SASLQualityOfProtection |
valueOf(java.lang.String name) |
Returns 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.
|
public static final SASLQualityOfProtection AUTH
public static final SASLQualityOfProtection AUTH_INT
public static final SASLQualityOfProtection AUTH_CONF
public static SASLQualityOfProtection[] values()
for (SASLQualityOfProtection c : SASLQualityOfProtection.values()) System.out.println(c);
public static SASLQualityOfProtection valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@Nullable public static SASLQualityOfProtection forName(@NotNull java.lang.String name)
name - The name of the SASL quality of protection value to retrieve.
It must not be null.null if
there is no value with the provided name.@NotNull public static java.util.List<SASLQualityOfProtection> decodeQoPList(@Nullable java.lang.String s) throws LDAPException
s - The string to be decoded.null but may be empty if the provided string was
null or empty.LDAPException - If the provided string cannot be decoded as a valid
list of SASL quality of protection values.@NotNull public java.lang.String toString()
toString in class java.lang.Enum<SASLQualityOfProtection>@NotNull public static java.lang.String toString(@NotNull java.util.List<SASLQualityOfProtection> qopValues)
SaslClient.qopValues - The list of values for which to create the string
representation.SaslClient.