public class CUserServiceImpl extends DefaultComponent implements CUserService
Constructor and Description |
---|
CUserServiceImpl() |
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 userKeystorePassword)
Retrieves user keystore from the directory.
|
boolean |
hasCertificate(String userID)
Checks if the user is present in the certificate directory.
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterContribution, unregisterExtension
public UserInfo getUserInfo(DocumentModel userModel) throws CertException
CUserService
getUserInfo
in interface CUserService
CertException
public KeyStore getUserKeystore(String userID, String userKeystorePassword) throws CertException, ClientException
CUserService
getUserKeystore
in interface CUserService
CertException
ClientException
public DocumentModel createCertificate(DocumentModel user, String userKeyPassword) throws CertException, ClientException
CUserService
createCertificate
in interface CUserService
CertException
ClientException
public String getUserCertInfo(DocumentModel user, String userKeyPassword) throws CertException, ClientException
CUserService
getUserCertInfo
in interface CUserService
CertException
ClientException
public DocumentModel getCertificate(String userID) throws ClientException
CUserService
getCertificate
in interface CUserService
ClientException
public byte[] getRootCertificateData() throws ClientException
CUserService
getRootCertificateData
in interface CUserService
ClientException
public boolean hasCertificate(String userID) throws CertException, ClientException
CUserService
hasCertificate
in interface CUserService
CertException
ClientException
public void deleteCertificate(String userID) throws CertException, ClientException
CUserService
This is a high-level operation. The following containers/entries are removed:
deleteCertificate
in interface CUserService
CertException
ClientException
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
Copyright © 2015 Nuxeo SA. All rights reserved.