LanguageCallback (Java SE 9 & JDK 9 ) (original) (raw)
- javax.security.auth.callback.LanguageCallback
All Implemented Interfaces:
[Serializable](../../../../java/io/Serializable.html "interface in java.io")
,[Callback](../../../../javax/security/auth/callback/Callback.html "interface in javax.security.auth.callback")
public class LanguageCallback
extends Object
implements Callback, Serializable
Underlying security services instantiate and pass aLanguageCallback
to the handle
method of a CallbackHandler
to retrieve the Locale
used for localizing text.
Since:
1.4
See Also:
CallbackHandler, Serialized Form
Constructor Summary
Constructors
Constructor Description LanguageCallback() Construct a LanguageCallback. Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type Method Description Locale getLocale() Get the retrieved Locale. void setLocale(Locale locale) Set the retrieved Locale. * ### Methods inherited from class java.lang.[Object](../../../../java/lang/Object.html "class in java.lang") `[clone](../../../../java/lang/Object.html#clone--), [equals](../../../../java/lang/Object.html#equals-java.lang.Object-), [finalize](../../../../java/lang/Object.html#finalize--), [getClass](../../../../java/lang/Object.html#getClass--), [hashCode](../../../../java/lang/Object.html#hashCode--), [notify](../../../../java/lang/Object.html#notify--), [notifyAll](../../../../java/lang/Object.html#notifyAll--), [toString](../../../../java/lang/Object.html#toString--), [wait](../../../../java/lang/Object.html#wait--), [wait](../../../../java/lang/Object.html#wait-long-), [wait](../../../../java/lang/Object.html#wait-long-int-)`
Constructor Detail
* #### LanguageCallback public LanguageCallback() Construct a `LanguageCallback`.
Method Detail
* #### setLocale public void setLocale([Locale](../../../../java/util/Locale.html "class in java.util") locale) Set the retrieved `Locale`. Parameters: `locale` \- the retrieved `Locale`. See Also: [getLocale()](../../../../javax/security/auth/callback/LanguageCallback.html#getLocale--) * #### getLocale public [Locale](../../../../java/util/Locale.html "class in java.util") getLocale() Get the retrieved `Locale`. Returns: the retrieved `Locale`, or null if no `Locale` could be retrieved. See Also: [setLocale(java.util.Locale)](../../../../javax/security/auth/callback/LanguageCallback.html#setLocale-java.util.Locale-)
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2017, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.