jsdsi.ldap
Class LDAPOp

java.lang.Object
  extended byjsdsi.ldap.LDAPAttributes
      extended byjsdsi.ldap.LDAPOp
Direct Known Subclasses:
LDAPOperations

class LDAPOp
extends LDAPAttributes

LDAP composed operations used by jsdsi.ldap.LDAPOperations

Version:
$Revison: 1.3 $Date: 21/Mar/2004 15:11:05
Author:
Luís Pedro
See Also:
LDAPOperations

Constructor Summary
(package private) LDAPOp(LDAPParameters params)
          Create a new instance of LDAPOp
 
Method Summary
(package private) static java.lang.String getCanonicalSexp()
          canonicalSexp attribute
(package private) static java.lang.String getCn()
          cn attribute
(package private) static java.lang.String getIssuer()
          issuer attribute
(package private) static java.lang.String getIssuerName()
          issuerName attribute
(package private) static java.lang.String getNotAfter()
          notAfter attribute
 LDAPParameters getParameters()
          Ldap parameters used to perform operations
(package private) static java.lang.String getSubject()
          subject attribute
(package private) static java.lang.String getSubjectName()
          subjectName attribute
(package private)  void LDAPBindConnection()
          Ldap connection using user name and password
(package private)  void LDAPConnection()
          Ldap connection
(package private)  void LDAPDelete(java.lang.String composedAttribute)
          Ldap delete
(package private)  void LDAPDisconnection()
          Ldap disconnection
(package private)  com.novell.ldap.LDAPSearchResults LDAPSearch(java.lang.String filter, int searchScope, java.lang.String[] attributes)
          Make generic ldap searchs
(package private)  com.novell.ldap.LDAPSearchResults LDAPSearch(java.lang.String filter, java.lang.String composedAttribute, int searchScope, java.lang.String[] attributes)
          Make ldap searchs with a specified ldap schema composed attribute
(package private)  void LDAPStore(java.lang.String composedAttribute, com.novell.ldap.LDAPAttributeSet attributeSet)
          Adds elements to the ldap server
(package private) static java.lang.String setAuthFilter(Principal principal, java.lang.String hashAlg)
          Create a auth filter from a principal issuer and an hash algorithm
(package private) static java.lang.String setCn(java.lang.String commonName)
          Set a composed string with the cn attribute
(package private) static java.lang.String setCompatibleFilter(Subject principal, java.lang.String name, java.lang.String hashAlg)
          Create a compatible filter from a subject issuer a name and an hash algorithm
(package private) static java.lang.String setNameFilter(Principal principal, java.lang.String name, java.lang.String hashAlg)
          Create a name filter from a principal issuer a name and an hash algorithm
(package private) static java.lang.String setSubjectFilter(Subject principal, java.lang.String hashAlg)
          Create a subject filter from subject issuer and an hash algorithm
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPOp

LDAPOp(LDAPParameters params)
Create a new instance of LDAPOp

Parameters:
params - ldap parameters
Method Detail

LDAPConnection

void LDAPConnection()
              throws com.novell.ldap.LDAPException
Ldap connection

Throws:
com.novell.ldap.LDAPException

LDAPBindConnection

void LDAPBindConnection()
                  throws com.novell.ldap.LDAPException
Ldap connection using user name and password

Throws:
com.novell.ldap.LDAPException

LDAPDisconnection

void LDAPDisconnection()
                 throws com.novell.ldap.LDAPException
Ldap disconnection

Throws:
com.novell.ldap.LDAPException

LDAPDelete

void LDAPDelete(java.lang.String composedAttribute)
          throws com.novell.ldap.LDAPException
Ldap delete

Parameters:
composedAttribute - composed attribute to delete
Throws:
com.novell.ldap.LDAPException

LDAPStore

void LDAPStore(java.lang.String composedAttribute,
               com.novell.ldap.LDAPAttributeSet attributeSet)
         throws com.novell.ldap.LDAPException
Adds elements to the ldap server

Parameters:
composedAttribute - composed attribute that identifies the element
attributeSet - set of attributes to store
Throws:
com.novell.ldap.LDAPException

LDAPSearch

com.novell.ldap.LDAPSearchResults LDAPSearch(java.lang.String filter,
                                             java.lang.String composedAttribute,
                                             int searchScope,
                                             java.lang.String[] attributes)
                                       throws com.novell.ldap.LDAPException
Make ldap searchs with a specified ldap schema composed attribute

Parameters:
filter - ldap search filter
composedAttribute - ldap schema composed attribute
searchScope - search scope - BASE, SUB, ONE
attributes - attribute values to return
Returns:
result of search operation over the ldap server
Throws:
com.novell.ldap.LDAPException

LDAPSearch

com.novell.ldap.LDAPSearchResults LDAPSearch(java.lang.String filter,
                                             int searchScope,
                                             java.lang.String[] attributes)
                                       throws com.novell.ldap.LDAPException
Make generic ldap searchs

Parameters:
filter - ldap search filter
searchScope - search scope - BASE, SUB, ONE
attributes - attribute values to return
Returns:
result of search operation over the ldap server
Throws:
com.novell.ldap.LDAPException

getParameters

public LDAPParameters getParameters()
Ldap parameters used to perform operations

Returns:
ldap parameters

setCn

static java.lang.String setCn(java.lang.String commonName)
Set a composed string with the cn attribute

Parameters:
commonName - cn ldap schema attribute that identifies the certificate
Returns:
String that represents composed commonName

setSubjectFilter

static java.lang.String setSubjectFilter(Subject principal,
                                         java.lang.String hashAlg)
Create a subject filter from subject issuer and an hash algorithm

Parameters:
principal - principal of a subject
hashAlg - hash algorithm
Returns:
String of a subject filter

setAuthFilter

static java.lang.String setAuthFilter(Principal principal,
                                      java.lang.String hashAlg)
Create a auth filter from a principal issuer and an hash algorithm

Parameters:
principal - principal of a issuer
hashAlg - hash algorithm
Returns:
String representing an auth filter

setNameFilter

static java.lang.String setNameFilter(Principal principal,
                                      java.lang.String name,
                                      java.lang.String hashAlg)
Create a name filter from a principal issuer a name and an hash algorithm

Parameters:
principal - principal of a issuer
name - issuer name
hashAlg - hash algorithm
Returns:
String representing a name filter

setCompatibleFilter

static java.lang.String setCompatibleFilter(Subject principal,
                                            java.lang.String name,
                                            java.lang.String hashAlg)
                                     throws java.security.cert.CertStoreException
Create a compatible filter from a subject issuer a name and an hash algorithm

Parameters:
principal - principal of a subject
name - subject name
hashAlg - hash algorithm
Returns:
String representing a compatible filter
Throws:
java.security.cert.CertStoreException

getCn

static java.lang.String getCn()
cn attribute

Returns:
cn attribute

getCanonicalSexp

static java.lang.String getCanonicalSexp()
canonicalSexp attribute

Returns:
canonicalSexp attribute

getIssuer

static java.lang.String getIssuer()
issuer attribute

Returns:
issuer attribute

getSubject

static java.lang.String getSubject()
subject attribute

Returns:
subject attribute

getIssuerName

static java.lang.String getIssuerName()
issuerName attribute

Returns:
issuerName attribute

getSubjectName

static java.lang.String getSubjectName()
subjectName attribute

Returns:
subjectName attribute

getNotAfter

static java.lang.String getNotAfter()
notAfter attribute

Returns:
notAfter attribute


Copyright © 2002-2004 M.I.T. All Rights Reserved.