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, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
protected RootService rootService
protected CertService certService
protected String countryCode
protected String organization
protected String organizationalUnit
public CUserServiceImpl()
public UserInfo getUserInfo(DocumentModel userModel) throws CertException
CUserService
getUserInfo
in interface CUserService
CertException
public KeyStore getUserKeystore(String userID, String userKeystorePassword) throws CertException
CUserService
getUserKeystore
in interface CUserService
CertException
public DocumentModel createCertificate(DocumentModel user, String userKeyPassword) throws CertException
CUserService
createCertificate
in interface CUserService
CertException
protected static DirectoryService getDirectoryService()
public String getUserCertInfo(DocumentModel user, String userKeyPassword) throws CertException
CUserService
getUserCertInfo
in interface CUserService
CertException
public DocumentModel getCertificate(String userID)
CUserService
getCertificate
in interface CUserService
public byte[] getRootCertificateData()
CUserService
getRootCertificateData
in interface CUserService
public boolean hasCertificate(String userID) throws CertException
CUserService
hasCertificate
in interface CUserService
CertException
public void deleteCertificate(String userID) throws CertException
CUserService
This is a high-level operation. The following containers/entries are removed:
deleteCertificate
in interface CUserService
CertException
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
protected CertService getCertService()
protected RootService getRootService()
Copyright © 2018 Nuxeo. All rights reserved.