public static class OpenPGPCertificate.OpenPGPSignatureChains extends java.lang.Object implements java.lang.Iterable<OpenPGPCertificate.OpenPGPSignatureChain>
OpenPGPCertificate.OpenPGPSignatureChain objects.| Constructor and Description |
|---|
OpenPGPSignatureChains(OpenPGPCertificate.OpenPGPCertificateComponent component) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(OpenPGPCertificate.OpenPGPSignatureChain chain)
Add a single chain to the collection.
|
void |
addAll(OpenPGPCertificate.OpenPGPSignatureChains otherChains)
Add all chains to the collection.
|
OpenPGPCertificate.OpenPGPSignatureChains |
fromOrigin(OpenPGPCertificate.OpenPGPComponentKey root)
Return all
OpenPGPCertificate.OpenPGPSignatureChain items which originate from the root OpenPGPCertificate.OpenPGPComponentKey. |
OpenPGPCertificate.OpenPGPSignatureChain |
getCertificationAt(java.util.Date evaluationTime)
Return the latest positive certification chain for the component which is effective at the given
evaluationTime and cryptographically valid.
|
OpenPGPCertificate.OpenPGPSignatureChains |
getCertifications()
Filter for certifications.
|
OpenPGPCertificate.OpenPGPSignatureChain |
getChainAt(java.util.Date evaluationDate)
Return the latest chain, certification or revocation, which is effective at the given evaluation
time and cryptographically valid.
|
OpenPGPCertificate.OpenPGPSignatureChains |
getChainsAt(java.util.Date evaluationTime)
Return all
OpenPGPCertificate.OpenPGPSignatureChain objects, which are valid at the given evaluation time. |
OpenPGPCertificate.OpenPGPSignatureChain |
getRevocationAt(java.util.Date evaluationTime)
Return the latest negative certification chain for the component which is effective at the given
evaluationTime and cryptographically valid.
|
OpenPGPCertificate.OpenPGPSignatureChains |
getRevocations()
Filter for revocations.
|
boolean |
isEmpty()
Return true if the collection is empty.
|
java.util.Iterator<OpenPGPCertificate.OpenPGPSignatureChain> |
iterator() |
java.lang.String |
toString() |
public OpenPGPSignatureChains(OpenPGPCertificate.OpenPGPCertificateComponent component)
public void add(OpenPGPCertificate.OpenPGPSignatureChain chain)
chain - chainpublic void addAll(OpenPGPCertificate.OpenPGPSignatureChains otherChains)
otherChains - other chainspublic boolean isEmpty()
public OpenPGPCertificate.OpenPGPSignatureChains getCertifications()
public OpenPGPCertificate.OpenPGPSignatureChains getRevocations()
public OpenPGPCertificate.OpenPGPSignatureChain getCertificationAt(java.util.Date evaluationTime)
RFC 9580, section 5.2.3.10: "An implementation that encounters multiple self-signatures on the same object MUST select the most recent valid self-signature and ignore all other self-signatures." A chain which does not verify is therefore skipped rather than returned, so that an appended signature which does not verify can neither shadow nor displace an older one which does.
evaluationTime - time for which validity of the OpenPGPCertificate.OpenPGPCertificateComponent is checked.public OpenPGPCertificate.OpenPGPSignatureChains getChainsAt(java.util.Date evaluationTime)
OpenPGPCertificate.OpenPGPSignatureChain objects, which are valid at the given evaluation time.evaluationTime - reference timepublic OpenPGPCertificate.OpenPGPSignatureChain getRevocationAt(java.util.Date evaluationTime)
evaluationTime - time for which revocation-ness of the OpenPGPCertificate.OpenPGPCertificateComponent is checked.public java.lang.String toString()
toString in class java.lang.Objectpublic OpenPGPCertificate.OpenPGPSignatureChains fromOrigin(OpenPGPCertificate.OpenPGPComponentKey root)
OpenPGPCertificate.OpenPGPSignatureChain items which originate from the root OpenPGPCertificate.OpenPGPComponentKey.root - root keypublic OpenPGPCertificate.OpenPGPSignatureChain getChainAt(java.util.Date evaluationDate)
evaluationDate - reference timepublic java.util.Iterator<OpenPGPCertificate.OpenPGPSignatureChain> iterator()
iterator in interface java.lang.Iterable<OpenPGPCertificate.OpenPGPSignatureChain>