@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
ClientException
public boolean hasCertificate(DocumentModel user) throws ClientException
user
- ClientException
public boolean hasCertificate(String userID) throws ClientException
userID
- ClientException
public boolean hasCertificate() throws ClientException
ClientException
public boolean canGenerateCertificate() throws ClientException
user
- ClientException
public void createCertificate(String firstPassword, String secondPassword) throws ClientException
user
- firstPassword
- secondPassword
- ClientException
public void deleteCertificate() throws ClientException
ClientException
public 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
- ClientException
public void validateRequiredUserFields() throws ClientException
ClientException
public void downloadRootCertificate() throws CertException
CertException
public String goToCertificateManagement()
public String backToDocument() throws ClientException
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.