Package sop.operation
Interface Verify
-
- All Superinterfaces:
VerifySignatures
- All Known Implementing Classes:
VerifyImpl
public interface Verify extends VerifySignatures
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Verifycert(byte[] cert)Adds the verification cert.Verifycert(InputStream cert)Adds the verification cert.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.default VerifySignaturessignatures(byte[] signatures)Provides the signatures.VerifySignaturessignatures(InputStream signatures)Provides the signatures.-
Methods inherited from interface sop.operation.VerifySignatures
data, data
-
-
-
-
Method Detail
-
notBefore
Verify notBefore(Date timestamp) throws SOPGPException.UnsupportedOption
Makes the SOP implementation consider signatures before this date invalid.- Parameters:
timestamp- timestamp- Returns:
- builder instance
- Throws:
SOPGPException.UnsupportedOption
-
notAfter
Verify notAfter(Date timestamp) throws SOPGPException.UnsupportedOption
Makes the SOP implementation consider signatures after this date invalid.- Parameters:
timestamp- timestamp- Returns:
- builder instance
- Throws:
SOPGPException.UnsupportedOption
-
cert
Verify cert(InputStream cert) throws SOPGPException.BadData
Adds the verification cert.- Parameters:
cert- input stream containing the encoded cert- Returns:
- builder instance
- Throws:
SOPGPException.BadData
-
cert
default Verify cert(byte[] cert) throws SOPGPException.BadData
Adds the verification cert.- Parameters:
cert- byte array containing the encoded cert- Returns:
- builder instance
- Throws:
SOPGPException.BadData
-
signatures
VerifySignatures signatures(InputStream signatures) throws SOPGPException.BadData
Provides the signatures.- Parameters:
signatures- input stream containing encoded, detached signatures.- Returns:
- builder instance
- Throws:
SOPGPException.BadData
-
signatures
default VerifySignatures signatures(byte[] signatures) throws SOPGPException.BadData
Provides the signatures.- Parameters:
signatures- byte array containing encoded, detached signatures.- Returns:
- builder instance
- Throws:
SOPGPException.BadData
-
-