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 TypeMethodDescriptionvoid
Add a single chain to the collection.void
addAll
(OpenPGPCertificate.OpenPGPSignatureChains otherChains) Add all chains to the collection.Return allOpenPGPCertificate.OpenPGPSignatureChain
items 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.OpenPGPSignatureChain
objects, which are valid at the given evaluation time.getRevocationAt
(Date evaluationTime) Return a negative certification chain for the component for the given evaluationTime.boolean
isEmpty()
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, wait
Methods 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.OpenPGPCertificateComponent
is checked.- Returns:
- positive certification chain or null
-
getChainsAt
Return allOpenPGPCertificate.OpenPGPSignatureChain
objects, 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.OpenPGPCertificateComponent
is checked.- Returns:
- negative certification chain or null
-
toString
-
fromOrigin
public OpenPGPCertificate.OpenPGPSignatureChains fromOrigin(OpenPGPCertificate.OpenPGPComponentKey root) Return allOpenPGPCertificate.OpenPGPSignatureChain
items 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:
iterator
in interfaceIterable<OpenPGPCertificate.OpenPGPSignatureChain>
-