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
- CertException
UserInfo getUserInfo(DocumentModel userModel) throws CertException
userModel
- CertException
String getUserCertInfo(DocumentModel user, String userKeyPassword) throws CertException
certificate
- CertException
KeyStore getUserKeystore(String userID, String userKeyPassword) throws CertException
user
- userKeyPassword
- CertException
DocumentModel getCertificate(String userID)
user
- byte[] getRootCertificateData()
user
- boolean hasCertificate(String userID) throws CertException
userID
- CertException
void deleteCertificate(String userID) throws CertException
This is a high-level operation. The following containers/entries are removed:
user
- CertException
Copyright © 2018 Nuxeo. All rights reserved.