com.novell.security.nmas.mgmt
Class NMASLoginDataMgr

java.lang.Object
  |
  +--com.novell.security.nmas.mgmt.NMASLoginDataMgr

public final class NMASLoginDataMgr
extends java.lang.Object

 Provides a simple set of controls to access (set/get/delete) NMAS 
  login data.


Constructor Summary
NMASLoginDataMgr(javax.naming.ldap.LdapContext ldapCtx)
          NMASLoginDataMgr constructor
NMASLoginDataMgr(com.novell.security.nmas.mgmt.LoginDataTransport transport)
          NMASLoginDataMgr constructor
 
Method Summary
 void deleteLoginConfig(java.lang.String tName, java.lang.String objectDN, int[] methodID, java.lang.String tag)
          Deletes the data under the given tag name from the given object.
 void deleteLoginSecret(java.lang.String tName, java.lang.String objectDN, int[] methodID, java.lang.String tag)
          Deletes the data under the given tag name from the given object.
 byte[] getLoginConfig(java.lang.String tName, java.lang.String objectDN, int[] methodID, java.lang.String tag)
          Reads the tagged data from the given object.
 void putLoginConfig(java.lang.String tName, java.lang.String objectDN, int[] methodID, java.lang.String tag, byte[] data)
          Writes the given data to the given object with the given tag name.
 void putLoginSecret(java.lang.String tName, java.lang.String objectDN, int[] methodID, java.lang.String tag, byte[] data)
          Writes the given data to the given object with the given tag name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NMASLoginDataMgr

public NMASLoginDataMgr(javax.naming.ldap.LdapContext ldapCtx)
NMASLoginDataMgr constructor

Parameters:
ldapCtx - An LdapContext object created and authenticated by the caller.

NMASLoginDataMgr

public NMASLoginDataMgr(com.novell.security.nmas.mgmt.LoginDataTransport transport)
NMASLoginDataMgr constructor

Parameters:
transport - A LoginDataTransport object initialized with the appropriate connection.
Method Detail

putLoginConfig

public void putLoginConfig(java.lang.String tName,
                           java.lang.String objectDN,
                           int[] methodID,
                           java.lang.String tag,
                           byte[] data)
                    throws NMASLoginDataException
Writes the given data to the given object with the given tag name.

Parameters:
tName - The eDirectory tree name.
objectDN - The distinguished name of the object to write login data to.
methodID - An integer array holding the method ID.
tag - The tag name used to store login data.
data - A byte array containing the login data to be written.
Throws:
NMASLoginDataException - contains the NMAS error code.

getLoginConfig

public byte[] getLoginConfig(java.lang.String tName,
                             java.lang.String objectDN,
                             int[] methodID,
                             java.lang.String tag)
                      throws NMASLoginDataException
Reads the tagged data from the given object.

Parameters:
tName - The eDirectory tree name.
objectDN - The distinguished name of the object to write login data to.
methodID - An integer array holding the method ID.
tag - The tag name to store the login data under.
Returns:
byte[] A byte array containing the login data read.
Throws:
NMASLoginDataException - contains the NMAS error code.

deleteLoginConfig

public void deleteLoginConfig(java.lang.String tName,
                              java.lang.String objectDN,
                              int[] methodID,
                              java.lang.String tag)
                       throws NMASLoginDataException
Deletes the data under the given tag name from the given object.

Parameters:
tName - The eDirectory tree name.
objectDN - The distinguished name of the object to write login data to.
methodID - An integer array holding the method ID.
tag - The tag name used to store the login data.
Throws:
NMASLoginDataException - contains the NMAS error code.

putLoginSecret

public void putLoginSecret(java.lang.String tName,
                           java.lang.String objectDN,
                           int[] methodID,
                           java.lang.String tag,
                           byte[] data)
                    throws NMASLoginDataException
Writes the given data to the given object with the given tag name.

Parameters:
tName - The eDirectory tree name.
objectDN - The distinguished name of the object to write login data to.
methodID - An integer array holding the method ID.
tag - The tag name used to store the login data.
data - A byte array containing the login data to be written.
Throws:
NMASLoginDataException - contains the NMAS error code.

deleteLoginSecret

public void deleteLoginSecret(java.lang.String tName,
                              java.lang.String objectDN,
                              int[] methodID,
                              java.lang.String tag)
                       throws NMASLoginDataException
Deletes the data under the given tag name from the given object.

Parameters:
tName - The eDirectory tree name.
objectDN - The distinguished name of the object to write login data to.
methodID - An integer array holding the method ID.
tag - The tag name used to store the login data.
Throws:
NMASLoginDataException - contains the NMAS error code.