com.novell.security.nmas.mgmt
Class LoginDataJLdapTransport

java.lang.Object
  |
  +--com.novell.security.nmas.mgmt.LoginDataJLdapTransport
All Implemented Interfaces:
LoginDataTransport

public final class LoginDataJLdapTransport
extends java.lang.Object
implements LoginDataTransport


Constructor Summary
LoginDataJLdapTransport(LDAPConnection ldapConn)
          LoginDataLdapTransport constructor
 
Method Summary
 void deleteLoginConfig(java.lang.String tName, java.lang.String objectDN, int[] methodID, java.lang.String tag)
          deleteLoginConfig() - Delete 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)
          deleteLoginSecret() - Delete 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)
          getLoginConfig() - Read 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)
          putLoginConfig() - 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)
          putLoginSecret() - 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

LoginDataJLdapTransport

public LoginDataJLdapTransport(LDAPConnection ldapConn)
LoginDataLdapTransport constructor

Parameters:
ldapConn - An LDAPConnection object created and authenticated by the caller
Method Detail

putLoginConfig

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

Specified by:
putLoginConfig in interface LoginDataTransport
Parameters:
tName - 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 data under
data - A byte array containing the 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
getLoginConfig() - Read the tagged data from the given object

Specified by:
getLoginConfig in interface LoginDataTransport
Parameters:
tName - 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 data under
Returns:
byte[] A byte array containing the 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
deleteLoginConfig() - Delete the data under the given tag name from the given object

Specified by:
deleteLoginConfig in interface LoginDataTransport
Parameters:
tName - 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 data under
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
putLoginSecret() - Writes the given data to the given object with the given tag name

Specified by:
putLoginSecret in interface LoginDataTransport
Parameters:
tName - 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 data under
data - A byte array containing the 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
deleteLoginSecret() - Delete the data under the given tag name from the given object

Specified by:
deleteLoginSecret in interface LoginDataTransport
Parameters:
tName - 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 data under
Throws:
NMASLoginDataException - contains the nmas error code