javax.security.auth.callback.Callbackpublic class URLCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback
URLCallback to the invokeCallback
 method of a CallbackHandler to retrieve URL information.CallbackHandler| Modifier and Type | Field | Description | 
|---|---|---|
private java.lang.String | 
defaultURL | 
|
private java.lang.String | 
inputURL | 
|
private java.lang.String | 
prompt | 
| Constructor | Description | 
|---|---|
URLCallback(java.lang.String prompt) | 
 Construct a  
URLCallback with a prompt. | 
URLCallback(java.lang.String prompt,
           java.lang.String defaultURL) | 
 Construct a  
URLCallback with a prompt
 and default URL. | 
| Modifier and Type | Method | Description | 
|---|---|---|
java.lang.String | 
getdefaultURL() | 
 Get the default URL. 
 | 
java.lang.String | 
getPrompt() | 
 Get the prompt. 
 | 
java.lang.String | 
getURL() | 
 The retrieved URL. 
 | 
void | 
setURL(java.lang.String URL) | 
 Set the value of the URL attribute. 
 | 
private java.lang.String prompt
private java.lang.String defaultURL
private java.lang.String inputURL
public URLCallback(java.lang.String prompt)
URLCallback with a prompt.prompt - The prompt used to request the URL.java.lang.IllegalArgumentException - if prompt is null
                        or if prompt has a length of 0.public URLCallback(java.lang.String prompt,
                   java.lang.String defaultURL)
URLCallback with a prompt
 and default URL.prompt - The prompt used to request the information.defaultURL - The URL used as the default URL displayed 
                        with the prompt.java.lang.IllegalArgumentException - if prompt is null,
                        if prompt has a length of 0,
                        if defaultURL is null,
                        or if defaultURL has a length of 0.public java.lang.String getPrompt()
public java.lang.String getdefaultURL()
URLCallback
                was not instantiated with a defaultURL.public void setURL(java.lang.String URL)
URL - The retrieved URL (which may be null).getURL()public java.lang.String getURL()