Package org.bouncycastle.openpgp.api
Class OpenPGPCertificate.OpenPGPSignatureChains
java.lang.Object
org.bouncycastle.openpgp.api.OpenPGPCertificate.OpenPGPSignatureChains
- All Implemented Interfaces:
Iterable<OpenPGPCertificate.OpenPGPSignatureChain>
- Enclosing class:
OpenPGPCertificate
public static class OpenPGPCertificate.OpenPGPSignatureChains
extends Object
implements Iterable<OpenPGPCertificate.OpenPGPSignatureChain>
Collection of multiple
OpenPGPCertificate.OpenPGPSignatureChain objects.-
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a single chain to the collection.voidaddAll(OpenPGPCertificate.OpenPGPSignatureChains otherChains) Add all chains to the collection.Return allOpenPGPCertificate.OpenPGPSignatureChainitems which originate from the rootOpenPGPCertificate.OpenPGPComponentKey.getCertificationAt(Date evaluationTime) Return a positive certification chain for the component for the given evaluationTime.getChainAt(Date evaluationDate) Return the latest chain, which is valid at the given evaluation time.getChainsAt(Date evaluationTime) Return allOpenPGPCertificate.OpenPGPSignatureChainobjects, which are valid at the given evaluation time.getRevocationAt(Date evaluationTime) Return a negative certification chain for the component for the given evaluationTime.booleanisEmpty()Return true if the collection is empty.iterator()toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
OpenPGPSignatureChains
-
-
Method Details
-
add
Add a single chain to the collection.- Parameters:
chain- chain
-
addAll
Add all chains to the collection.- Parameters:
otherChains- other chains
-
isEmpty
public boolean isEmpty()Return true if the collection is empty.- Returns:
- true if empty
-
getCertificationAt
Return a positive certification chain for the component for the given evaluationTime.- Parameters:
evaluationTime- time for which validity of theOpenPGPCertificate.OpenPGPCertificateComponentis checked.- Returns:
- positive certification chain or null
-
getChainsAt
Return allOpenPGPCertificate.OpenPGPSignatureChainobjects, which are valid at the given evaluation time.- Parameters:
evaluationTime- reference time- Returns:
- valid chains at reference time
-
getRevocationAt
Return a negative certification chain for the component for the given evaluationTime.- Parameters:
evaluationTime- time for which revocation-ness of theOpenPGPCertificate.OpenPGPCertificateComponentis checked.- Returns:
- negative certification chain or null
-
toString
-
fromOrigin
public OpenPGPCertificate.OpenPGPSignatureChains fromOrigin(OpenPGPCertificate.OpenPGPComponentKey root) Return allOpenPGPCertificate.OpenPGPSignatureChainitems which originate from the rootOpenPGPCertificate.OpenPGPComponentKey.- Parameters:
root- root key- Returns:
- all chains with root key as origin
-
getChainAt
Return the latest chain, which is valid at the given evaluation time.- Parameters:
evaluationDate- reference time- Returns:
- latest valid chain
-
iterator
- Specified by:
iteratorin interfaceIterable<OpenPGPCertificate.OpenPGPSignatureChain>
-