com.webmethods.sc.directory.cert
Interface ICertificateMapper


public interface ICertificateMapper


Method Summary
 void addMapping(CertificateMapping mapping)
          Adds static ceritificate mapping
 IDirectoryPrincipal getMappingByCertificateID(String certificateID, String mappingType)
          Gets all mappings for given certificateID and mappingType
 List getMappingsByPrincipalID(String principalID, String mappingType)
          Gets all mappings for given principalID and mappingType
 void removeMapping(CertificateMapping mapping)
          Removes static certificate mapping
 

Method Detail

addMapping

void addMapping(CertificateMapping mapping)
                throws DirectoryException
Adds static ceritificate mapping

Parameters:
mapping -
Throws:
DirectoryException

removeMapping

void removeMapping(CertificateMapping mapping)
                   throws DirectoryException
Removes static certificate mapping

Parameters:
mapping -
Throws:
DirectoryException

getMappingByCertificateID

IDirectoryPrincipal getMappingByCertificateID(String certificateID,
                                              String mappingType)
                                              throws DirectoryException
Gets all mappings for given certificateID and mappingType

Parameters:
certificateID -
mappingType. - May pass null to assume default mapping
Returns:
directory principal object mapped to this certificate or null if not mapped
Throws:
DirectoryException

getMappingsByPrincipalID

List getMappingsByPrincipalID(String principalID,
                              String mappingType)
                              throws DirectoryException
Gets all mappings for given principalID and mappingType

Parameters:
principalID -
mappingType. - May pass null to assume default mapping
Returns:
list of certificates mapped to given principals
Throws:
DirectoryException