@Name(value="certActions") @Scope(value=CONVERSATION) public class CertActions extends Object implements Serializable
| Constructor and Description |
|---|
CertActions() |
| Modifier and Type | Method and Description |
|---|---|
String |
backToDocument() |
boolean |
canGenerateCertificate()
Indicates whether a user has the right to generate a certificate.
|
void |
createCertificate(String firstPassword,
String secondPassword)
Launches certificate generation.
|
void |
deleteCertificate() |
void |
downloadRootCertificate() |
DocumentModel |
getCertificate()
Retrieves a user certificate and returns a certificate's document model object
|
String |
goToCertificateManagement() |
boolean |
hasCertificate()
Checks if a specified user has a certificate
|
boolean |
hasCertificate(DocumentModel user)
Checks if a specified user has a certificate
|
boolean |
hasCertificate(String userID)
Checks if a specified user has a certificate
|
void |
validatePasswords(String firstPassword,
String secondPassword)
Validates that the password follows business rules.
|
void |
validateRequiredUserFields()
Validates user identity fields required for certificate generation NXP-6485
|
public DocumentModel getCertificate() throws ClientException
ClientExceptionpublic boolean hasCertificate(DocumentModel user) throws ClientException
user - ClientExceptionpublic boolean hasCertificate(String userID) throws ClientException
userID - ClientExceptionpublic boolean hasCertificate()
throws ClientException
ClientExceptionpublic boolean canGenerateCertificate()
throws ClientException
user - ClientExceptionpublic void createCertificate(String firstPassword, String secondPassword) throws ClientException
user - firstPassword - secondPassword - ClientExceptionpublic void deleteCertificate()
throws ClientException
ClientExceptionpublic void validatePasswords(String firstPassword, String secondPassword) throws ClientException
The password must be typed in twice correctly, follow minimum length, and be different than the application login password.
The validations are performed in the following sequence cheapest validations first, then the ones requiring more system resources.
firstPassword - secondPassword - ClientExceptionpublic void validateRequiredUserFields()
throws ClientException
ClientExceptionpublic void downloadRootCertificate()
throws CertException
CertExceptionpublic String goToCertificateManagement()
public String backToDocument() throws ClientException
ClientExceptionCopyright © 2015 Nuxeo SA. All rights reserved.