public abstract class AbstractCertifier extends Object
| Modifier and Type | Field and Description |
|---|---|
protected List<String> |
_listCertifiableAttributes |
protected int |
_nCertificateLevel |
protected int |
_nExpirationDelay |
protected String |
_strCode |
protected String |
_strDescription |
protected String |
_strIconUrl |
protected String |
_strName |
static int |
NO_CERTIFICATE_EXPIRATION_DELAY |
| Constructor and Description |
|---|
AbstractCertifier(String strCode) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
afterCertify(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityDto identityDto,
String strClientAppCode,
List<String> listCertifiedAttribut)
Method to override by children of BaseCertifier if something have to be done after create the certificate
|
protected abstract void |
beforeCertify(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityDto identityDto,
String strClientAppCode)
Method to override by children of BaseCertifier if something have to be done before create the certificate
|
void |
certify(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityDto identityDto,
String strClientAppCode)
Certify attributes
|
List<String> |
getCertifiableAttributesList()
Get the certifiable attribute keys list
|
int |
getCertificateLevel()
Returns the CertificateLevel
|
String |
getCode()
Get the certifier code
|
String |
getDescription()
Returns the Description
|
int |
getExpirationDelay()
Returns the Certification expiration delay have to return NO_CERTIFICATE_EXPIRATION_DELAY if no expiration
|
String |
getIconUrl()
Get the Icon URL
|
String |
getName()
Get the certifier name
|
void |
setCertifiableAttributesList(List<String> list)
Setter for Spring Context
|
void |
setCertificateLevel(int nCertificateLevel)
Sets the CertificateLevel
|
void |
setDescription(String strDescription)
Sets the Description
|
void |
setExpirationDelay(int nExpirationDelay)
Sets the ExpirationDelay
|
void |
setIconUrl(String strIconUrl)
Sets the IconUrl
|
void |
setName(String strName)
Sets the Name
|
public static final int NO_CERTIFICATE_EXPIRATION_DELAY
protected String _strCode
protected String _strName
protected String _strDescription
protected int _nCertificateLevel
protected String _strIconUrl
protected int _nExpirationDelay
public AbstractCertifier(String strCode)
public String getCode()
public String getName()
public void setName(String strName)
strName - The Namepublic String getDescription()
public void setDescription(String strDescription)
strDescription - The Descriptionpublic int getCertificateLevel()
public void setCertificateLevel(int nCertificateLevel)
nCertificateLevel - The CertificateLevelpublic String getIconUrl()
public void setIconUrl(String strIconUrl)
strIconUrl - The IconUrlpublic int getExpirationDelay()
public void setExpirationDelay(int nExpirationDelay)
nExpirationDelay - The ExpirationDelaypublic List<String> getCertifiableAttributesList()
public void setCertifiableAttributesList(List<String> list)
list - The listprotected abstract void beforeCertify(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityDto identityDto,
String strClientAppCode)
identityDto - identity to changestrClientAppCode - Client application codeprotected abstract void afterCertify(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityDto identityDto,
String strClientAppCode,
List<String> listCertifiedAttribut)
identityDto - identity updatedstrClientAppCode - Client application codelistCertifiedAttribut - list of all attribute key which have been certifiedpublic final void certify(fr.paris.lutece.plugins.identitystore.web.rs.dto.IdentityDto identityDto,
String strClientAppCode)
identity - The identity datastrClientAppCode - the client codeCopyright © 2017 City of Paris. All rights reserved.