tyrex.security

Class NamePasswordCallback

public class NamePasswordCallback extends Object implements 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

Method Summary
StringgetName()
Returns the retrieved name.
char[]getPassword()
Returns the retrieved password.
StringgetRealm()
Returns the realm.
voidsetName(String name)
Sets the retrieved name.
voidsetPassword(char[] password)
Sets the retrieved password.
voidsetRealm(String realm)
Sets the realm.

Method Detail

getName

public String getName()
Returns the retrieved name.

Returns: The retrieved name (may be null)

getPassword

public char[] getPassword()
Returns the retrieved password.

Returns: The retrieved password (may be null)

getRealm

public String getRealm()
Returns the realm.

Returns: The realm (may be null)

setName

public void setName(String name)
Sets the retrieved name.

Parameters: name The retrieved name (may be null)

setPassword

public void setPassword(char[] password)
Sets the retrieved password.

Parameters: name The retrieved password (may be null)

setRealm

public void setRealm(String realm)
Sets the realm.

Parameters: name The realm (may be null)

Original code is Copyright (c) 1999-2001, Intalio, Inc. All Rights Reserved. Contributions by MetaBoss team are Copyright (c) 2003-2005, Softaris Pty. Ltd. All Rights Reserved.