public class CertificateEntry extends Object implements Comparable<CertificateEntry>
| Modifier and Type | Field and Description |
|---|---|
static CertificateEntry |
REFRESH_MARKER
A marker to be used by callbacks when refresh of the certificate list is required.
|
| Constructor and Description |
|---|
CertificateEntry(String alias,
X509Certificate certificate)
Creates a CertificateEntry object with the given alias and associated certificate.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(CertificateEntry other)
Comparable implementation.
|
static String |
formatAlias(String tokenLabel,
String tokenSerial,
String certLabel,
X509Certificate cert) |
String |
getAlias()
Returns the alias name of the certificate.
|
X509Certificate |
getCertificate()
Returns the associated certificate.
|
String |
getTokenLabel()
Returns label of the token containing the certificate.
|
String |
getTokenSerial()
Returns serial of the token containing the certificate.
|
public static final CertificateEntry REFRESH_MARKER
public CertificateEntry(String alias, X509Certificate certificate)
alias - the alias name.certificate - associated certificate.public String getAlias()
public X509Certificate getCertificate()
public String getTokenLabel()
public String getTokenSerial()
public int compareTo(CertificateEntry other)
compareTo in interface Comparable<CertificateEntry>public static String formatAlias(String tokenLabel, String tokenSerial, String certLabel, X509Certificate cert)