public class CUserServiceImpl extends DefaultComponent implements CUserService
| Modifier and Type | Field and Description |
|---|---|
protected CertService |
certService |
protected String |
countryCode
Configurable country code
|
protected String |
organization
Configurable organization name
|
protected String |
organizationalUnit
Configurable organizational unit name
|
protected RootService |
rootService |
lastModified| 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.
|
protected CertService |
getCertService() |
protected static DirectoryService |
getDirectoryService() |
byte[] |
getRootCertificateData()
Retrieves the public root certificate.
|
protected RootService |
getRootService() |
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, deactivate, getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterContribution, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderprotected RootService rootService
protected CertService certService
protected String countryCode
protected String organization
protected String organizationalUnit
public CUserServiceImpl()
public UserInfo getUserInfo(DocumentModel userModel) throws CertException
CUserServicegetUserInfo in interface CUserServiceCertExceptionpublic KeyStore getUserKeystore(String userID, String userKeystorePassword) throws CertException
CUserServicegetUserKeystore in interface CUserServiceCertExceptionpublic DocumentModel createCertificate(DocumentModel user, String userKeyPassword) throws CertException
CUserServicecreateCertificate in interface CUserServiceCertExceptionprotected static DirectoryService getDirectoryService()
public String getUserCertInfo(DocumentModel user, String userKeyPassword) throws CertException
CUserServicegetUserCertInfo in interface CUserServiceCertExceptionpublic DocumentModel getCertificate(String userID)
CUserServicegetCertificate in interface CUserServicepublic byte[] getRootCertificateData()
CUserServicegetRootCertificateData in interface CUserServicepublic boolean hasCertificate(String userID) throws CertException
CUserServicehasCertificate in interface CUserServiceCertExceptionpublic void deleteCertificate(String userID) throws CertException
CUserServiceThis is a high-level operation. The following containers/entries are removed:
deleteCertificate in interface CUserServiceCertExceptionpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentprotected CertService getCertService()
protected RootService getRootService()
Copyright © 2017 Nuxeo. All rights reserved.