com.netscape.cms.servlet.admin
Class AuthCredentials

java.lang.Object
  extended by com.netscape.cms.servlet.admin.AuthCredentials
All Implemented Interfaces:
IAuthCredentials, IAttrSet, java.io.Serializable

public class AuthCredentials
extends java.lang.Object
implements IAuthCredentials

Authentication Credentials as input to the authMgr

Version:
$Revision: 1211 $, $Date: 2010-08-18 10:15:37 -0700 (Wed, 18 Aug 2010) $
See Also:
Serialized Form

Constructor Summary
AuthCredentials()
           
 
Method Summary
 void delete(java.lang.String name)
          removes the name and its corresponding credential from this credential set.
 java.lang.Object get(java.lang.String name)
          returns the credential to which the specified name is mapped in this credential set
 IArgBlock getArgBlock()
          Returns argblock.
 java.util.Enumeration getElements()
          returns an enumeration of the credentials in this credential set.
 void set(java.lang.String name, java.lang.Object cred)
          sets a credential with credential name and the credential
 void setArgBlock(IArgBlock blk)
          Set argblock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthCredentials

public AuthCredentials()
Method Detail

set

public void set(java.lang.String name,
                java.lang.Object cred)
         throws EBaseException
sets a credential with credential name and the credential

Specified by:
set in interface IAttrSet
Parameters:
name - credential name
cred - credential
Throws:
EBaseException - NullPointerException

get

public java.lang.Object get(java.lang.String name)
returns the credential to which the specified name is mapped in this credential set

Specified by:
get in interface IAttrSet
Parameters:
name - credential name
Returns:
the named authentication credential

delete

public void delete(java.lang.String name)
removes the name and its corresponding credential from this credential set. This method does nothing if the named credential is not in the credential set.

Specified by:
delete in interface IAttrSet
Parameters:
name - credential name

getElements

public java.util.Enumeration getElements()
returns an enumeration of the credentials in this credential set. Use the Enumeration methods on the returned object to fetch the elements sequentially.

Specified by:
getElements in interface IAttrSet
Returns:
an enumeration of the values in this credential set
See Also:
Enumeration

setArgBlock

public void setArgBlock(IArgBlock blk)
Description copied from interface: IAuthCredentials
Set argblock.

Specified by:
setArgBlock in interface IAuthCredentials
Parameters:
blk - argblock

getArgBlock

public IArgBlock getArgBlock()
Description copied from interface: IAuthCredentials
Returns argblock.

Specified by:
getArgBlock in interface IAuthCredentials
Returns:
Argblock.