javax.security.auth.callback
public class LanguageCallback extends Object implements Callback, Serializable
LanguageCallback
to the handle()
method of a {@link CallbackHandler} to retrieve
the {@link Locale} used for localizing text.
See Also: CallbackHandler
Constructor Summary | |
---|---|
LanguageCallback() Construct a LanguageCallback . |
Method Summary | |
---|---|
Locale | getLocale()
Get the retrieved Locale.
|
void | setLocale(Locale locale)
Set the retrieved Locale.
|
LanguageCallback
.Returns: the retrieved Locale, or null
if no Locale could be
retrieved.
See Also: setLocale
Parameters: locale the retrieved Locale.
See Also: getLocale