KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > security > sasl > RealmCallback


1 /*
2  * @(#)RealmCallback.java 1.11 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.security.sasl;
9
10 import javax.security.auth.callback.TextInputCallback JavaDoc;
11
12 /**
13   * This callback is used by <tt>SaslClient</tt> and <tt>SaslServer</tt>
14   * to retrieve realm information.
15   *
16   * @since 1.5
17   *
18   * @author Rosanna Lee
19   * @author Rob Weltman
20   */

21 public class RealmCallback extends TextInputCallback JavaDoc {
22
23     /**
24      * Constructs a <tt>RealmCallback</tt> with a prompt.
25      *
26      * @param prompt The non-null prompt to use to request the realm information.
27      * @throws IllegalArgumentException If <tt>prompt</tt> is null or
28      * the empty string.
29      */

30     public RealmCallback(String JavaDoc prompt) {
31     super(prompt);
32     }
33
34     /**
35      * Constructs a <tt>RealmCallback</tt> with a prompt and default
36      * realm information.
37      *
38      * @param prompt The non-null prompt to use to request the realm information.
39      * @param defaultRealmInfo The non-null default realm information to use.
40      * @throws IllegalArgumentException If <tt>prompt</tt> is null or
41      * the empty string,
42      * or if <tt>defaultRealm</tt> is empty or null.
43      */

44     public RealmCallback(String JavaDoc prompt, String JavaDoc defaultRealmInfo) {
45     super(prompt, defaultRealmInfo);
46     }
47
48     private static final long serialVersionUID = -4342673378785456908L;
49 }
50
Popular Tags