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 keystore when used.
|
Iterator<X509Certificate> |
iterator() |
void |
toSimple(SimpleCertificateBucket certificates,
String... aliases)
Adding certificates identified by aliases from keystore 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, waitforEach, 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
CertificateBucketExceptionprotected KeyStore getKeyStore() throws CertificateBucketException
CertificateBucketExceptionCopyright © 2015 Norwegian Agency for Public Management and eGovernment (Difi). All rights reserved.