public class KeyStoreCertificateBucket extends Object implements CertificateBucket
| Constructor and Description |
|---|
KeyStoreCertificateBucket(InputStream inputStream,
String password) |
KeyStoreCertificateBucket(KeyStore keyStore) |
KeyStoreCertificateBucket(String type,
InputStream inputStream,
String password) |
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
findBySubject(X500Principal principal)
Find certificate by subject.
|
protected KeyStore |
getKeyStore()
Allows for overriding method of fetching key store when used.
|
Iterator<X509Certificate> |
iterator() |
void |
startsWith(SimpleCertificateBucket certificates,
String... prefix)
Adding certificates identified by prefix(es) from key store to a SimpleCertificateBucket.
|
SimpleCertificateBucket |
startsWith(String... prefix)
Create a new SimpleCertificateBucket and adding certificates based on prefix(es).
|
void |
toSimple(SimpleCertificateBucket certificates,
String... aliases)
Adding certificates identified by aliases from key store to a SimpleCertificateBucket.
|
SimpleCertificateBucket |
toSimple(String... aliases)
Create a new SimpleCertificateBucket and adding certificates based on aliases.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasListforEach, spliteratorprotected KeyStore keyStore
public KeyStoreCertificateBucket(KeyStore keyStore)
public KeyStoreCertificateBucket(InputStream inputStream, String password) throws CertificateBucketException
CertificateBucketExceptionpublic KeyStoreCertificateBucket(String type, InputStream inputStream, String password) throws CertificateBucketException
CertificateBucketExceptionpublic X509Certificate findBySubject(X500Principal principal) throws CertificateBucketException
findBySubject in interface CertificateBucketprincipal - Principal representing certificate to be found.CertificateBucketExceptionpublic Iterator<X509Certificate> iterator()
iterator in interface Iterable<X509Certificate>public void toSimple(SimpleCertificateBucket certificates, String... aliases) throws CertificateBucketException
CertificateBucketExceptionpublic SimpleCertificateBucket toSimple(String... aliases) throws CertificateBucketException
CertificateBucketExceptionpublic void startsWith(SimpleCertificateBucket certificates, String... prefix) throws CertificateBucketException
CertificateBucketExceptionpublic SimpleCertificateBucket startsWith(String... prefix) throws CertificateBucketException
CertificateBucketExceptionprotected KeyStore getKeyStore() throws CertificateBucketException
CertificateBucketExceptionCopyright © 2023 NorStella. All rights reserved.