Package sop.operation
Interface AbstractVerify<T>
- Type Parameters:
T
- Builder type (DetachedVerify
,InlineVerify
)
- All Known Subinterfaces:
DetachedVerify
,InlineVerify
public interface AbstractVerify<T>
Common API methods shared between verification of inline signatures (
InlineVerify
)
and verification of detached signatures (DetachedVerify
).-
Method Summary
Modifier and TypeMethodDescriptiondefault T
cert
(byte[] cert) Add one or more verification cert.cert
(InputStream cert) Add one or more verification cert.Makes the SOP implementation consider signatures after this date invalid.Makes the SOP implementation consider signatures before this date invalid.
-
Method Details
-
notBefore
Makes the SOP implementation consider signatures before this date invalid.- Parameters:
timestamp
- timestamp- Returns:
- builder instance
- Throws:
SOPGPException.UnsupportedOption
-
notAfter
Makes the SOP implementation consider signatures after this date invalid.- Parameters:
timestamp
- timestamp- Returns:
- builder instance
- Throws:
SOPGPException.UnsupportedOption
-
cert
Add one or more verification cert.- Parameters:
cert
- input stream containing the encoded certs- Returns:
- builder instance
- Throws:
SOPGPException.BadData
- if the input stream does not contain an OpenPGP certificateIOException
- in case of an IO error
-
cert
Add one or more verification cert.- Parameters:
cert
- byte array containing the encoded certs- Returns:
- builder instance
- Throws:
SOPGPException.BadData
- if the byte array does not contain an OpenPGP certificateIOException
- in case of an IO error
-