public static interface AuthenticationChallenge.Builder
AuthenticationChallenge instances| Modifier and Type | Method and Description |
|---|---|
AuthenticationChallenge |
build()
Build
AuthenticationChallenge instance |
AuthenticationChallenge.Builder |
error(CharSequence errorCode, Translatable errorDescription)
Create an error parameter and an error_description parameter
|
AuthenticationChallenge.Builder |
parameter(CharSequence name, CharSequence value)
Create a parameter with a value which cannot be localized
|
AuthenticationChallenge.Builder |
parameter(CharSequence name, Translatable value)
Create a parameter with a value which may be localized
|
AuthenticationChallenge.Builder |
realm(CharSequence realm)
Specify the realm parameter for this challenge
|
AuthenticationChallenge build()
AuthenticationChallenge instanceAuthenticationChallenge instanceAuthenticationChallenge.Builder error(CharSequence errorCode, Translatable errorDescription)
errorCode - The nonlocalizable error code identifiererrorDescription - The localizable error description (may be null)AuthenticationChallenge.Builder parameter(CharSequence name, CharSequence value)
name - The name of the parameter (not localized)value - The non-localizable value of the parameterAuthenticationChallenge.Builder parameter(CharSequence name, Translatable value)
name - The name of the parameter (not localized)value - The translatable value of the parameterAuthenticationChallenge.Builder realm(CharSequence realm)
realm - The realm name