LDAP Classes
Implements Java LDAP

com.novell.security.sasl
Class RealmChoiceCallback

java.lang.Object
  extended byjavax.security.auth.callback.ChoiceCallback
      extended bycom.novell.security.sasl.RealmChoiceCallback
All Implemented Interfaces:
javax.security.auth.callback.Callback, java.io.Serializable

public class RealmChoiceCallback
extends javax.security.auth.callback.ChoiceCallback

This callback is used by SaslClient and SaslServer to obtain one or more realms given a list of realm choices.

See Also:
Serialized Form

Constructor Summary
RealmChoiceCallback(java.lang.String prompt, java.lang.String[] choices, int defaultChoice, boolean multipleSel)
          Constructs a RealmChoiceCallback with a prompt, a list of choices and a default choice.
 
Methods inherited from class javax.security.auth.callback.ChoiceCallback
allowMultipleSelections, getChoices, getDefaultChoice, getPrompt, getSelectedIndexes, setSelectedIndex, setSelectedIndexes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RealmChoiceCallback

public RealmChoiceCallback(java.lang.String prompt,
                           java.lang.String[] choices,
                           int defaultChoice,
                           boolean multipleSel)
Constructs a RealmChoiceCallback with a prompt, a list of choices and a default choice.

Parameters:
prompt - The non-null prompt to use to request the realm.
choices - The non-null list of realms to choose from.
defaultChoice - The choice to be used as the default choice when the list of choices is displayed. It is an index into the choices arary.
multipleSel - Specifies whether or not multiple selections can be made from the list of choices.

LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000