RealmCallback (Java SE 11 & JDK 11 ) (original) (raw)
- javax.security.auth.callback.TextInputCallback
- javax.security.sasl.RealmCallback
All Implemented Interfaces:
[Serializable](../../../../java.base/java/io/Serializable.html "interface in java.io")
,[Callback](../../../../java.base/javax/security/auth/callback/Callback.html "interface in javax.security.auth.callback")
public class RealmCallback
extends TextInputCallback
This callback is used by SaslClient
and SaslServer
to retrieve realm information.
Since:
1.5
See Also:
Serialized Form
Constructor Summary
Constructors
Constructor Description RealmCallback(String prompt) Constructs a RealmCallback with a prompt. RealmCallback(String prompt,String defaultRealmInfo) Constructs a RealmCallback with a prompt and default realm information. Method Summary
* ### Methods declared in class javax.security.auth.callback.[TextInputCallback](../../../../java.base/javax/security/auth/callback/TextInputCallback.html "class in javax.security.auth.callback") `[getDefaultText](../../../../java.base/javax/security/auth/callback/TextInputCallback.html#getDefaultText%28%29), [getPrompt](../../../../java.base/javax/security/auth/callback/TextInputCallback.html#getPrompt%28%29), [getText](../../../../java.base/javax/security/auth/callback/TextInputCallback.html#getText%28%29), [setText](../../../../java.base/javax/security/auth/callback/TextInputCallback.html#setText%28java.lang.String%29)` * ### Methods declared in class java.lang.[Object](../../../../java.base/java/lang/Object.html "class in java.lang") `[clone](../../../../java.base/java/lang/Object.html#clone%28%29), [equals](../../../../java.base/java/lang/Object.html#equals%28java.lang.Object%29), [finalize](../../../../java.base/java/lang/Object.html#finalize%28%29), [getClass](../../../../java.base/java/lang/Object.html#getClass%28%29), [hashCode](../../../../java.base/java/lang/Object.html#hashCode%28%29), [notify](../../../../java.base/java/lang/Object.html#notify%28%29), [notifyAll](../../../../java.base/java/lang/Object.html#notifyAll%28%29), [toString](../../../../java.base/java/lang/Object.html#toString%28%29), [wait](../../../../java.base/java/lang/Object.html#wait%28%29), [wait](../../../../java.base/java/lang/Object.html#wait%28long%29), [wait](../../../../java.base/java/lang/Object.html#wait%28long,int%29)`
Constructor Detail
* #### RealmCallback public RealmCallback([String](../../../../java.base/java/lang/String.html "class in java.lang") prompt) Constructs a `RealmCallback` with a prompt. Parameters: `prompt` \- The non-null prompt to use to request the realm information. Throws: `[IllegalArgumentException](../../../../java.base/java/lang/IllegalArgumentException.html "class in java.lang")` \- If `prompt` is null or the empty string. * #### RealmCallback public RealmCallback([String](../../../../java.base/java/lang/String.html "class in java.lang") prompt, [String](../../../../java.base/java/lang/String.html "class in java.lang") defaultRealmInfo) Constructs a `RealmCallback` with a prompt and default realm information. Parameters: `prompt` \- The non-null prompt to use to request the realm information. `defaultRealmInfo` \- The non-null default realm information to use. Throws: `[IllegalArgumentException](../../../../java.base/java/lang/IllegalArgumentException.html "class in java.lang")` \- If `prompt` is null or the empty string, or if `defaultRealm` is empty or null.
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, 2025, 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.