APIdia Launch Partner
Top Description Fields Constructors Methods
javax.security.sasl

public Class RealmCallback

extends TextInputCallback
Class Inheritance
Imports
java.io.Serial, javax.security.auth.callback.TextInputCallback

This callback is used by SaslClient and SaslServer to retrieve realm information.
Authors
Rosanna Lee, Rob Weltman
Since
1.5

Field Summary

Modifier and TypeField and Description
private static final long

Constructor Summary

AccessConstructor and Description
public
RealmCallback(String
The non-null prompt to use to request the realm information.
prompt
)

Constructs a RealmCallback with a prompt.

public
RealmCallback(String
The non-null prompt to use to request the realm information.
prompt
,
String
The non-null default realm information to use.
defaultRealmInfo
)

Constructs a RealmCallback with a prompt and default realm information.

Method Summary

Inherited from javax.security.auth.callback.TextInputCallback:
getDefaultTextgetPromptgetTextsetText

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides javax.security.auth.callback.TextInputCallback.serialVersionUID.

Annotations
@Serial

Constructor Detail

RealmCallbackback to summary
public RealmCallback(String prompt)

Constructs a RealmCallback with a prompt.

Parameters
prompt:String

The non-null prompt to use to request the realm information.

Exceptions
IllegalArgumentException:
If prompt is null or the empty string.
RealmCallbackback to summary
public RealmCallback(String prompt, String defaultRealmInfo)

Constructs a RealmCallback with a prompt and default realm information.

Parameters
prompt:String

The non-null prompt to use to request the realm information.

defaultRealmInfo:String

The non-null default realm information to use.

Exceptions
IllegalArgumentException:
If prompt is null or the empty string, or if defaultRealm is empty or null.