tyrex.security
Class NamePasswordCallback

java.lang.Object
  |
  +--tyrex.security.NamePasswordCallback
All Implemented Interfaces:
javax.security.auth.callback.Callback

public class NamePasswordCallback
extends java.lang.Object
implements javax.security.auth.callback.Callback

Callback for name/password authentication. Can be used by a login module to request the user name, password and realm in order to authenticate.

This information will be supplied by a non-GUI capable container.

The realm is supplied by the login module, and may be ignored, used to obtain a suitable name/password, or determine that no name/password is available for that login module.

Version:
$Revision: 1.4 $ $Date: 2001/03/12 19:20:18 $
Author:
Assaf Arkin

Constructor Summary
NamePasswordCallback()
           
 
Method Summary
 java.lang.String getName()
          Returns the retrieved name.
 char[] getPassword()
          Returns the retrieved password.
 java.lang.String getRealm()
          Returns the realm.
 void setName(java.lang.String name)
          Sets the retrieved name.
 void setPassword(char[] password)
          Sets the retrieved password.
 void setRealm(java.lang.String realm)
          Sets the realm.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NamePasswordCallback

public NamePasswordCallback()
Method Detail

setName

public void setName(java.lang.String name)
Sets the retrieved name.
Parameters:
name - The retrieved name (may be null)

getName

public java.lang.String getName()
Returns the retrieved name.
Returns:
The retrieved name (may be null)

setPassword

public void setPassword(char[] password)
Sets the retrieved password.
Parameters:
name - The retrieved password (may be null)

getPassword

public char[] getPassword()
Returns the retrieved password.
Returns:
The retrieved password (may be null)

setRealm

public void setRealm(java.lang.String realm)
Sets the realm.
Parameters:
name - The realm (may be null)

getRealm

public java.lang.String getRealm()
Returns the realm.
Returns:
The realm (may be null)


Intalio Inc. (C) 1999-2001. All rights reserved.