com.netscape.certsrv.authentication
Class AuthCredentials

java.lang.Object
  extended by com.netscape.certsrv.authentication.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. It contains all the information required for authentication in the authMgr.

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

Constructor Summary
AuthCredentials()
          Constructor
 
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 the 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 an authentication credential with credential name and the credential object
 void setArgBlock(IArgBlock blk)
          Set the given argblock i * @param blk the given argblock.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthCredentials

public AuthCredentials()
Constructor

Method Detail

set

public void set(java.lang.String name,
                java.lang.Object cred)
Sets an authentication credential with credential name and the credential object

Specified by:
set in interface IAttrSet
Parameters:
name - credential name
cred - credential object

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 authentication credential for the given name

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

setArgBlock

public void setArgBlock(IArgBlock blk)
Set the given argblock i * @param blk the given argblock.

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

getArgBlock

public IArgBlock getArgBlock()
Returns the argblock.

Specified by:
getArgBlock in interface IAuthCredentials
Returns:
the argblock.