public class TrustedCertificate extends Object implements Serializable
| Constructor and Description |
|---|
TrustedCertificate(X509Certificate certificate,
String thumbprintSHA1) |
| Modifier and Type | Method and Description |
|---|---|
void |
addService(TrustedListService service)
Add associated trusted list service.
|
void |
addServices(List<TrustedListService> list)
Add associated trusted list services.
|
void |
checkValidity(Date validationDate) |
X509Certificate |
getCertificate()
Returns the trusted certificate.
|
List<TrustedListService> |
getServices()
Returns the associated services, if the certificate is part of the trusted list.
|
String |
getThumbprintSHA1()
Returns SHA-1 thumbprint of the trusted certificate.
|
TrustedListService |
getTrustedListService(String type,
Date date) |
boolean |
hasTrustedListServices()
Returns true, if the certificate is part of the trusted list.
|
public TrustedCertificate(X509Certificate certificate, String thumbprintSHA1)
public X509Certificate getCertificate()
public String getThumbprintSHA1()
public List<TrustedListService> getServices()
public void addService(TrustedListService service)
service - the associated service.public void addServices(List<TrustedListService> list)
list - the associated services.public boolean hasTrustedListServices()
public TrustedListService getTrustedListService(String type, Date date)
public void checkValidity(Date validationDate) throws CertValidatorException
CertValidatorException