Top Description Fields Constructors Methods
javax.security.auth.callback

public Class LanguageCallback

extends Object
implements Callback, Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable, javax.security.auth.callback.Callback
Imports
java.util.Locale

Underlying security services instantiate and pass a LanguageCallback to the handle method of a CallbackHandler to retrieve the Locale used for localizing text.

Since
1.4
See Also
javax.security.auth.callback.CallbackHandler

Field Summary

Modifier and TypeField and Description
private Locale
private static final long

Constructor Summary

AccessConstructor and Description
public
LanguageCallback()

Construct a LanguageCallback.

Method Summary

Modifier and TypeMethod and Description
public Locale

Returns:

the retrieved Locale, or null if no Locale could be retrieved.
getLocale
()

Get the retrieved Locale.

public void
setLocale(Locale
the retrieved Locale.
locale
)

Set the retrieved Locale.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

localeback to summary
private Locale locale
Since
1.4
serialVersionUIDback to summary
private static final long serialVersionUID
Annotations
@Serial

Constructor Detail

LanguageCallbackback to summary
public LanguageCallback()

Construct a LanguageCallback.

Method Detail

getLocaleback to summary
public Locale getLocale()

Get the retrieved Locale.

Returns:Locale

the retrieved Locale, or null if no Locale could be retrieved.

See Also
setLocale
setLocaleback to summary
public void setLocale(Locale locale)

Set the retrieved Locale.

Parameters
locale:Locale

the retrieved Locale.

See Also
getLocale