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 Verify
cert(InputStream cert)
Adds the verification cert.List<Verification>
data(InputStream data)
Provide the signed data (without signatures).Verify
notAfter(Date timestamp)
Makes the SOP implementation consider signatures after this date invalid.Verify
notBefore(Date timestamp)
Makes the SOP implementation consider signatures before this date invalid.VerifyImpl
signatures(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:Verify
Makes the SOP implementation consider signatures before this date invalid.- Specified by:
notBefore
in interfaceVerify
- Parameters:
timestamp
- timestamp- Returns:
- builder instance
- Throws:
SOPGPException.UnsupportedOption
-
notAfter
public Verify notAfter(Date timestamp) throws SOPGPException.UnsupportedOption
Description copied from interface:Verify
Makes the SOP implementation consider signatures after this date invalid.- Specified by:
notAfter
in interfaceVerify
- Parameters:
timestamp
- timestamp- Returns:
- builder instance
- Throws:
SOPGPException.UnsupportedOption
-
cert
public Verify cert(InputStream cert) throws SOPGPException.BadData
Description copied from interface:Verify
Adds the verification cert.- Specified by:
cert
in 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:Verify
Provides the signatures.- Specified by:
signatures
in 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:VerifySignatures
Provide the signed data (without signatures).- Specified by:
data
in 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
-
-