|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.security.RemoteNameCallback
public class RemoteNameCallback
This is an instance of a NameCallback that's remoteable. This class can be used by clients, but typically, they will implement the javax.security.auth.callback.CallbackHandler interface and deal with the local versions of those callbacks, and use Challenger to convert to/from these remote versions.
Constructor Summary | |
---|---|
RemoteNameCallback(java.lang.String prompt)
Create a new instance with a prompt string. |
|
RemoteNameCallback(java.lang.String prompt,
java.lang.String defaultName)
Create a new instance with a prompt string and a default name. |
|
RemoteNameCallback(java.lang.String prompt,
java.lang.String defaultName,
java.lang.String name)
Creates a new instance with a prompt string. |
Method Summary | |
---|---|
java.lang.String |
getDefaultName()
Gets the default name. |
java.lang.String |
getName()
Gets the name. |
java.lang.String |
getPrompt()
Gets the prompt. |
void |
setName(java.lang.String name)
Sets the name. |
Constructor Detail |
---|
public RemoteNameCallback(java.lang.String prompt, java.lang.String defaultName, java.lang.String name) throws java.rmi.RemoteException
The remote object will be exported to the RMI system using the specified socket factories.
prompt
- The String to display when asking the user for their username.defaultName
- Default name or null
if a default name is not defined.name
- The string representing the name.
java.rmi.RemoteException
- in the event of remote object failure.public RemoteNameCallback(java.lang.String prompt) throws java.rmi.RemoteException
prompt
- The String to display when asking the user for their username.
java.rmi.RemoteException
- in the event of remote object failure.public RemoteNameCallback(java.lang.String prompt, java.lang.String defaultName) throws java.rmi.RemoteException
prompt
- Callback's promptdefaultName
- Default name
java.rmi.RemoteException
- in the event of remote object failure.Method Detail |
---|
public java.lang.String getDefaultName()
getDefaultName
in interface RemoteNameCallbackInterface
public java.lang.String getPrompt()
getPrompt
in interface RemoteNameCallbackInterface
public java.lang.String getName()
getName
in interface RemoteNameCallbackInterface
public void setName(java.lang.String name)
setName
in interface RemoteNameCallbackInterface
name
- Name
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |