public interface CUserService
| Modifier and Type | Method and Description | 
|---|---|
DocumentModel | 
createCertificate(DocumentModel user,
                 String userKeyPassword)
Generates user certificate and user keys, saves them to a user store, and persists the store in the directory. 
 | 
void | 
deleteCertificate(String userID)
Deletes user entry from the certificate directory. 
 | 
DocumentModel | 
getCertificate(String userID)
Retrieves a user certificate from the directory. 
 | 
byte[] | 
getRootCertificateData()
Retrieves the public root certificate. 
 | 
String | 
getUserCertInfo(DocumentModel user,
               String userKeyPassword)
Returns simplified textual representation of a certificate's contents. 
 | 
UserInfo | 
getUserInfo(DocumentModel userModel)
Retrieves a UserInfo object containing information needed for certificate generation. 
 | 
KeyStore | 
getUserKeystore(String userID,
               String userKeyPassword)
Retrieves user keystore from the directory. 
 | 
boolean | 
hasCertificate(String userID)
Checks if the user is present in the certificate directory. 
 | 
DocumentModel createCertificate(DocumentModel user, String userKeyPassword) throws CertException
user - userKeyPassword - CertExceptionUserInfo getUserInfo(DocumentModel userModel) throws CertException
userModel - CertExceptionString getUserCertInfo(DocumentModel user, String userKeyPassword) throws CertException
certificate - CertExceptionKeyStore getUserKeystore(String userID, String userKeyPassword) throws CertException
user - userKeyPassword - CertExceptionDocumentModel getCertificate(String userID)
user - byte[] getRootCertificateData()
user - boolean hasCertificate(String userID) throws CertException
userID - CertExceptionvoid deleteCertificate(String userID) throws CertException
This is a high-level operation. The following containers/entries are removed:
user - CertExceptionCopyright © 2019 Nuxeo. All rights reserved.