Package org.bouncycastle.openpgp.api
Class OpenPGPCertificate.OpenPGPSignatureChain.Link
java.lang.Object
org.bouncycastle.openpgp.api.OpenPGPCertificate.OpenPGPSignatureChain.Link
- Direct Known Subclasses:
OpenPGPCertificate.OpenPGPSignatureChain.Certification,OpenPGPCertificate.OpenPGPSignatureChain.Revocation
- Enclosing class:
OpenPGPCertificate.OpenPGPSignatureChain
Link in a
OpenPGPCertificate.OpenPGPSignatureChain.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionFactory method for creating Links from component signatures.Return the signature of the link.since()Return theDatesince when the link is effective.toString()until()Return theDateuntil the signature is effective.booleanverify(PGPContentVerifierBuilderProvider contentVerifierBuilderProvider, OpenPGPPolicy policy) Verify the link signature.
-
Field Details
-
signature
-
-
Constructor Details
-
Link
-
-
Method Details
-
since
Return theDatesince when the link is effective. This is the creation time of the signature.- Returns:
- signature creation time
-
until
Return theDateuntil the signature is effective. This is, depending on which event is earlier in time, either the signature expiration time, or the key expiration time.- Returns:
- time until the link is valid
-
verify
public boolean verify(PGPContentVerifierBuilderProvider contentVerifierBuilderProvider, OpenPGPPolicy policy) throws PGPSignatureException Verify the link signature.- Parameters:
contentVerifierBuilderProvider- provider for content verifier builderspolicy- algorithm policy- Returns:
- true if the signature is valid, false otherwise
- Throws:
PGPSignatureException- if an exception occurs during signature verification
-
toString
-
create
public static OpenPGPCertificate.OpenPGPSignatureChain.Link create(OpenPGPCertificate.OpenPGPComponentSignature signature) Factory method for creating Links from component signatures. Returns either aOpenPGPCertificate.OpenPGPSignatureChain.Certificationin case the signature is a binding, or aOpenPGPCertificate.OpenPGPSignatureChain.Revocationin case the signature is a revocation signature.- Parameters:
signature- component signature- Returns:
- link
-
getSignature
Return the signature of the link.- Returns:
- signature
-