jsdsi.ldap
Class LDAPAttributes

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

class LDAPAttributes
extends java.lang.Object

Jsdsi schema and CertSelectors filters Schema attributes: cn, canonicalSexp, subject, issuerName, subjectName and notAfter

Version:
$Revision: 1.5 $ $Date: 2004/03/27 19:13:56 $
Author:
Luís Pedro

Constructor Summary
(package private) LDAPAttributes()
           
 
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
(package private) static java.lang.String getSubject()
          subject attribute
(package private) static java.lang.String getSubjectName()
          subjectName attribute
(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

LDAPAttributes

LDAPAttributes()
Method Detail

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.