server-error = "e=" server-error-value
server-error-value = "invalid-encoding" /
"extensions-not-supported" / ; unrecognized 'm' value
"invalid-proof" /
"channel-bindings-dont-match" /
"server-does-support-channel-binding" /
; server does not support channel binding
"channel-binding-not-supported" /
"unsupported-channel-binding-type" /
"unknown-user" /
"invalid-username-encoding" /
; invalid username encoding (invalid UTF-8 or
; SASLprep failed)
"no-resources" /
"other-error" /
server-error-value-ext
; Unrecognized errors should be treated as "other-error".
; In order to prevent information disclosure, the server
; may substitute the real reason with "other-error".
server-error-value-ext = value
; Additional error reasons added by extensions
; to this document.
verifier = "v=" base64
;; base-64 encoded ServerSignature.
server-final-errorMessage = (server-error / verifier)
["," extensions]
Note that extensions are not supported (and, consequently, error message extensions).
| Modifier and Type | Class and Description |
|---|---|
| public static enum | ServerFinalMessage.Error
Possible error messages sent on a server-final-message. |
| Modifier and Type | Field and Description |
|---|---|
| private final ServerFinalMessage. | |
| private final byte[] |
| Access | Constructor and Description |
|---|---|
| public | ServerFinalMessage(byte[]
The bytes of the computed signature verifier)Constructs a server-final-message with no errors, and the provided server verifier |
| public | ServerFinalMessage(ServerFinalMessage.
The error errorConstructs a server-final-message which represents a SCRAM error. |
| Modifier and Type | Method and Description |
|---|---|
| public ServerFinalMessage. | |
| public byte[] | |
| public boolean | Returns: True if it contains an error, false if it contains a verifierWhether this server-final-message contains an error |
| public static ServerFinalMessage | |
| public String | |
| public StringBuffer | writeTo(StringBuffer
Where to write the data. sb)Implements com. |
| error | back to summary |
|---|---|
| private final ServerFinalMessage. | |
| verifier | back to summary |
|---|---|
| private final byte[] verifier | |
| ServerFinalMessage | back to summary |
|---|---|
| public ServerFinalMessage(byte[] verifier) throws IllegalArgumentException Constructs a server-final-message with no errors, and the provided server verifier
| |
| ServerFinalMessage | back to summary |
|---|---|
| public ServerFinalMessage(ServerFinalMessage. Constructs a server-final-message which represents a SCRAM error.
| |
| getError | back to summary |
|---|---|
| public ServerFinalMessage. | |
| getVerifier | back to summary |
|---|---|
public byte[] getVerifier()
| |
| isError | back to summary |
|---|---|
| public boolean isError() Whether this server-final-message contains an error
| |
| parseFrom | back to summary |
|---|---|
| public static ServerFinalMessage parseFrom(String serverFinalMessage) throws ScramParseException, IllegalArgumentException Parses a server-final-message from a String.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| writeTo | back to summary |
|---|---|
| public StringBuffer writeTo(StringBuffer sb) Implements com. Doc from com. Write the class information to the given StringBuffer.
| |
| Modifier and Type | Field and Description |
|---|---|
| private static final Map | |
| public static final ServerFinalMessage. | |
| public static final ServerFinalMessage. | |
| private final String | |
| public static final ServerFinalMessage. | |
| public static final ServerFinalMessage. | |
| public static final ServerFinalMessage. | |
| public static final ServerFinalMessage. | |
| public static final ServerFinalMessage. | |
| public static final ServerFinalMessage. | |
| public static final ServerFinalMessage. | |
| public static final ServerFinalMessage. | |
| public static final ServerFinalMessage. |
| Modifier and Type | Method and Description |
|---|---|
| public static ServerFinalMessage. | |
| public String | |
| public static ServerFinalMessage. | |
| public static ServerFinalMessage. | |
| private static Map |
| BY_NAME_MAPPING | back to summary |
|---|---|
| private static final Map<String, ServerFinalMessage. | |
| CHANNEL_BINDING_NOT_SUPPORTED | back to summary |
|---|---|
| public static final ServerFinalMessage. | |
| CHANNEL_BINDINGS_DONT_MATCH | back to summary |
|---|---|
| public static final ServerFinalMessage. | |
| errorMessage | back to summary |
|---|---|
| private final String errorMessage | |
| EXTENSIONS_NOT_SUPPORTED | back to summary |
|---|---|
| public static final ServerFinalMessage. | |
| INVALID_ENCODING | back to summary |
|---|---|
| public static final ServerFinalMessage. | |
| INVALID_PROOF | back to summary |
|---|---|
| public static final ServerFinalMessage. | |
| INVALID_USERNAME_ENCODING | back to summary |
|---|---|
| public static final ServerFinalMessage. | |
| NO_RESOURCES | back to summary |
|---|---|
| public static final ServerFinalMessage. | |
| OTHER_ERROR | back to summary |
|---|---|
| public static final ServerFinalMessage. | |
| SERVER_DOES_SUPPORT_CHANNEL_BINDING | back to summary |
|---|---|
| public static final ServerFinalMessage. | |
| UNKNOWN_USER | back to summary |
|---|---|
| public static final ServerFinalMessage. | |
| UNSUPPORTED_CHANNEL_BINDING_TYPE | back to summary |
|---|---|
| public static final ServerFinalMessage. | |
| Error | back to summary |
|---|---|
| private Error(String errorMessage) | |
| getByErrorMessage | back to summary |
|---|---|
| public static ServerFinalMessage. | |
| getErrorMessage | back to summary |
|---|---|
| public String getErrorMessage() | |
| valueOf | back to summary |
|---|---|
| public static ServerFinalMessage. | |
| values | back to summary |
|---|---|
| public static ServerFinalMessage. | |
| valuesAsMap | back to summary |
|---|---|
| private static Map | |