public enum ScramAttributes extends java.lang.Enum<ScramAttributes> implements CharAttribute
Enum Constant and Description |
---|
AUTHZID
This is an optional attribute, and is part of the GS2 [RFC5801]
bridge between the GSS-API and SASL.
|
CHANNEL_BINDING
This REQUIRED attribute specifies the base64-encoded GS2 header and channel binding data.
|
CLIENT_PROOF
This attribute specifies a base64-encoded ClientProof.
|
ERROR
This attribute specifies an error that occurred during authentication exchange.
|
ITERATION
This attribute specifies an iteration count for the selected hash function and user.
|
NONCE
This attribute specifies a sequence of random printable ASCII characters excluding ','
(which forms the nonce used as input to the hash function).
|
SALT
This attribute specifies the base64-encoded salt used by the server for this user.
|
SERVER_SIGNATURE
This attribute specifies a base64-encoded ServerSignature.
|
USERNAME
This attribute specifies the name of the user whose password is used for authentication
(a.k.a.
|
Modifier and Type | Field and Description |
---|---|
private char |
attributeChar |
private static java.util.Map<java.lang.Character,ScramAttributes> |
REVERSE_MAPPING |
Modifier and Type | Method and Description |
---|---|
static ScramAttributes |
byChar(char c)
Find a SCRAMAttribute by its character.
|
char |
getChar()
Return the char used to represent this attribute
|
static ScramAttributes |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ScramAttributes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ScramAttributes USERNAME
public static final ScramAttributes AUTHZID
public static final ScramAttributes NONCE
public static final ScramAttributes CHANNEL_BINDING
public static final ScramAttributes SALT
public static final ScramAttributes ITERATION
public static final ScramAttributes CLIENT_PROOF
public static final ScramAttributes SERVER_SIGNATURE
public static final ScramAttributes ERROR
private final char attributeChar
private static final java.util.Map<java.lang.Character,ScramAttributes> REVERSE_MAPPING
public static ScramAttributes[] values()
for (ScramAttributes c : ScramAttributes.values()) System.out.println(c);
public static ScramAttributes 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 nullpublic char getChar()
CharAttribute
getChar
in interface CharAttribute
public static ScramAttributes byChar(char c) throws ScramParseException
c
- The character.ScramParseException
- If no SCRAMAttribute has this character.