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 theDate
since when the link is effective.toString()
until()
Return theDate
until the signature is effective.boolean
verify
(PGPContentVerifierBuilderProvider contentVerifierBuilderProvider, OpenPGPPolicy policy) Verify the link signature.
-
Field Details
-
signature
-
-
Constructor Details
-
Link
-
-
Method Details
-
since
Return theDate
since when the link is effective. This is the creation time of the signature.- Returns:
- signature creation time
-
until
Return theDate
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.- 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.Certification
in case the signature is a binding, or aOpenPGPCertificate.OpenPGPSignatureChain.Revocation
in case the signature is a revocation signature.- Parameters:
signature
- component signature- Returns:
- link
-
getSignature
Return the signature of the link.- Returns:
- signature
-