| Constructor and Description |
|---|
CertificateSet()
Creates an empty
CertificateSet. |
CertificateSet(CertificateSet set)
Creates a copy of the specified set.
|
CertificateSet(X509Certificate[] certificates)
Creates a
CertificateSet that contains the specified
X.509 certificates. |
| Modifier and Type | Method and Description |
|---|---|
X509Certificate[] |
getCertificates()
Returns the content objects as an array of certificates.
|
X509Certificate |
getLatest()
Returns the certificate that expires last in the set.
|
static CertificateSet |
joinsets(CertificateSet set,
CertificateSet set2)
Helper method which joins two sets together depending on whether 1 or both of them
contain data.
|
addElement, apply, elements, getContentClass, getElements, intersect, removeAll, removeElement, size, substract, unionpublic CertificateSet()
throws java.lang.ClassNotFoundException
CertificateSet.java.lang.ClassNotFoundException - thrown if the class iaik.x509.X509Certificate
is not accessible through the classpathpublic CertificateSet(X509Certificate[] certificates) throws java.lang.NullPointerException
CertificateSet that contains the specified
X.509 certificates.
If two certificates in the array are equal, only the first certificate is
included in the set. Elements of the certificates array may
be null.
certificates - the certificates to include in the setjava.lang.NullPointerException - thrown if certificates is nullpublic CertificateSet(CertificateSet set) throws java.lang.NullPointerException
The certificates contained in the specified set are not copied.
set - the certificate set to copyjava.lang.NullPointerException - thrown if set is nullpublic X509Certificate getLatest()
If more than one certificate expires at the same time, any one of these certificates is returned as long as there are no other certificates that expire later.
public static CertificateSet joinsets(CertificateSet set, CertificateSet set2)
set - A set of certificatesset2 - A set of certificatespublic X509Certificate[] getCertificates()
iaik.x509.X509Certificate containing all
certificates of this set