Interface CUserService

  • All Known Implementing Classes:
    CUserServiceImpl

    public interface CUserService
    High-level user certificate and keystore operations. These services help retrieving certificates, keystores and other information related to specific users.
    Author:
    Wojciech Sulejman
    • Method Detail

      • getCertificate

        DocumentModel getCertificate​(String userID)
        Retrieves a user certificate from the directory.
        Returns:
        certificate document model
      • getRootCertificateData

        byte[] getRootCertificateData()
        Retrieves the public root certificate.
        Returns:
        certificate document model
      • hasCertificate

        boolean hasCertificate​(String userID)
                        throws CertException
        Checks if the user is present in the certificate directory.
        Throws:
        CertException
      • deleteCertificate

        void deleteCertificate​(String userID)
                        throws CertException
        Deletes user entry from the certificate directory.

        This is a high-level operation. The following containers/entries are removed:

        • a certificate directory entry related to the userID
        • a keystore (which was saved as a field in the directory entry)
        • a private key and a public certificate (which were contained in the keystore)
        Throws:
        CertException