Package org.pgpainless.sop
Class VerifyImpl
- java.lang.Object
-
- org.pgpainless.sop.VerifyImpl
-
- All Implemented Interfaces:
Verify,VerifySignatures
public class VerifyImpl extends Object implements Verify
-
-
Constructor Summary
Constructors Constructor Description VerifyImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Verifycert(InputStream cert)Adds the verification cert.List<Verification>data(InputStream data)Provide the signed data (without signatures).VerifynotAfter(Date timestamp)Makes the SOP implementation consider signatures after this date invalid.VerifynotBefore(Date timestamp)Makes the SOP implementation consider signatures before this date invalid.VerifyImplsignatures(InputStream signatures)Provides the signatures.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface sop.operation.Verify
cert, signatures
-
Methods inherited from interface sop.operation.VerifySignatures
data
-
-
-
-
Constructor Detail
-
VerifyImpl
public VerifyImpl()
-
-
Method Detail
-
notBefore
public Verify notBefore(Date timestamp) throws SOPGPException.UnsupportedOption
Description copied from interface:VerifyMakes the SOP implementation consider signatures before this date invalid.- Specified by:
notBeforein interfaceVerify- Parameters:
timestamp- timestamp- Returns:
- builder instance
- Throws:
SOPGPException.UnsupportedOption
-
notAfter
public Verify notAfter(Date timestamp) throws SOPGPException.UnsupportedOption
Description copied from interface:VerifyMakes the SOP implementation consider signatures after this date invalid.- Specified by:
notAfterin interfaceVerify- Parameters:
timestamp- timestamp- Returns:
- builder instance
- Throws:
SOPGPException.UnsupportedOption
-
cert
public Verify cert(InputStream cert) throws SOPGPException.BadData
Description copied from interface:VerifyAdds the verification cert.- Specified by:
certin interfaceVerify- Parameters:
cert- input stream containing the encoded cert- Returns:
- builder instance
- Throws:
SOPGPException.BadData
-
signatures
public VerifyImpl signatures(InputStream signatures) throws SOPGPException.BadData
Description copied from interface:VerifyProvides the signatures.- Specified by:
signaturesin interfaceVerify- Parameters:
signatures- input stream containing encoded, detached signatures.- Returns:
- builder instance
- Throws:
SOPGPException.BadData
-
data
public List<Verification> data(InputStream data) throws IOException, SOPGPException.NoSignature, SOPGPException.BadData
Description copied from interface:VerifySignaturesProvide the signed data (without signatures).- Specified by:
datain interfaceVerifySignatures- Parameters:
data- signed data- Returns:
- list of signature verifications
- Throws:
IOException- in case of an IO errorSOPGPException.NoSignature- when no signature is foundSOPGPException.BadData- when the data is invalid OpenPGP data
-
-