Class CertificateBucketWrapper
- java.lang.Object
-
- network.oxalis.commons.certvalidator.util.CertificateBucketWrapper
-
- All Implemented Interfaces:
Iterable<X509Certificate>,CertificateBucket
public class CertificateBucketWrapper extends Object implements CertificateBucket
Wrapper for certificate bucket. May be used to switch or update certificate buckets on-fly.
-
-
Constructor Summary
Constructors Constructor Description CertificateBucketWrapper(CertificateBucket certificateBucket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X509CertificatefindBySubject(X500Principal principal)Find certificate by subject.CertificateBucketgetCertificateBucket()Iterator<X509Certificate>iterator()voidsetCertificateBucket(CertificateBucket certificateBucket)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface network.oxalis.commons.certvalidator.api.CertificateBucket
asList
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
-
-
-
Constructor Detail
-
CertificateBucketWrapper
public CertificateBucketWrapper(CertificateBucket certificateBucket)
-
-
Method Detail
-
findBySubject
public X509Certificate findBySubject(X500Principal principal) throws CertificateBucketException
Find certificate by subject.- Specified by:
findBySubjectin interfaceCertificateBucket- Parameters:
principal- Principal representing certificate to be found.- Returns:
- Certificate if found, otherwise null.
- Throws:
CertificateBucketException
-
iterator
public Iterator<X509Certificate> iterator()
- Specified by:
iteratorin interfaceIterable<X509Certificate>
-
getCertificateBucket
public CertificateBucket getCertificateBucket()
-
setCertificateBucket
public void setCertificateBucket(CertificateBucket certificateBucket)
-
-