Class ServerErrorValue
- java.lang.Object
-
- com.ongres.scram.common.exception.ServerErrorValue
-
public final class ServerErrorValue extends java.lang.Object
This attribute specifies an error that occurred during authentication exchange. It is sent by the server in its final message and can help diagnose the reason for the authentication exchange failure.
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String>
ERROR_MESSAGE
-
Constructor Summary
Constructors Modifier Constructor Description private
ServerErrorValue()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getErrorMessage(java.lang.String errorValue)
This get the error message used in aScramServerErrorException
.private static java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String>
initServerErrorValue()
-
-
-
Method Detail
-
initServerErrorValue
private static java.util.concurrent.ConcurrentMap<java.lang.String,java.lang.String> initServerErrorValue()
-
getErrorMessage
public static java.lang.String getErrorMessage(java.lang.String errorValue)
This get the error message used in aScramServerErrorException
.- Parameters:
errorValue
- theserver-error-value
send by the server- Returns:
- String with a user friendly message about the error
-
-