public abstract static class OpenPGPCertificate.OpenPGPSignatureChain.Link
extends java.lang.Object
OpenPGPCertificate.OpenPGPSignatureChain
.Modifier and Type | Field and Description |
---|---|
protected OpenPGPCertificate.OpenPGPComponentSignature |
signature |
Constructor and Description |
---|
Link(OpenPGPCertificate.OpenPGPComponentSignature signature) |
Modifier and Type | Method and Description |
---|---|
static OpenPGPCertificate.OpenPGPSignatureChain.Link |
create(OpenPGPCertificate.OpenPGPComponentSignature signature)
Factory method for creating Links from component signatures.
|
OpenPGPCertificate.OpenPGPComponentSignature |
getSignature()
Return the signature of the link.
|
java.util.Date |
since()
Return the
Date since when the link is effective. |
java.lang.String |
toString() |
java.util.Date |
until()
Return the
Date until the signature is effective. |
boolean |
verify(PGPContentVerifierBuilderProvider contentVerifierBuilderProvider,
OpenPGPPolicy policy)
Verify the link signature.
|
protected final OpenPGPCertificate.OpenPGPComponentSignature signature
public Link(OpenPGPCertificate.OpenPGPComponentSignature signature)
public java.util.Date since()
Date
since when the link is effective.
This is the creation time of the signature.public java.util.Date until()
Date
until the signature is effective.
This is, depending on which event is earlier in time, either the signature expiration time,
or the key expiration time.public boolean verify(PGPContentVerifierBuilderProvider contentVerifierBuilderProvider, OpenPGPPolicy policy) throws PGPSignatureException
contentVerifierBuilderProvider
- provider for content verifier builderspolicy
- algorithm policyPGPSignatureException
- if an exception occurs during signature verificationpublic java.lang.String toString()
toString
in class java.lang.Object
public static OpenPGPCertificate.OpenPGPSignatureChain.Link create(OpenPGPCertificate.OpenPGPComponentSignature signature)
OpenPGPCertificate.OpenPGPSignatureChain.Certification
in case the signature is a binding,
or a OpenPGPCertificate.OpenPGPSignatureChain.Revocation
in case the signature is a revocation signature.signature
- component signaturepublic OpenPGPCertificate.OpenPGPComponentSignature getSignature()