Class VerifyCleartextSignaturesImpl.WithStrategyImpl
- java.lang.Object
-
- org.pgpainless.signature.cleartext_signatures.VerifyCleartextSignaturesImpl.WithStrategyImpl
-
- All Implemented Interfaces:
VerifyCleartextSignatures.WithStrategy
- Enclosing class:
- VerifyCleartextSignaturesImpl
public class VerifyCleartextSignaturesImpl.WithStrategyImpl extends java.lang.Object implements VerifyCleartextSignatures.WithStrategy
-
-
Constructor Summary
Constructors Constructor Description WithStrategyImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VerifyCleartextSignatures.VerifyWithwithStrategy(MultiPassStrategy multiPassStrategy)Provide aMultiPassStrategywhich is used to store the message content.
-
-
-
Method Detail
-
withStrategy
public VerifyCleartextSignatures.VerifyWith withStrategy(MultiPassStrategy multiPassStrategy)
Description copied from interface:VerifyCleartextSignatures.WithStrategyProvide aMultiPassStrategywhich is used to store the message content. Since cleartext-signed messages cannot be processed in one pass, the message has to be passed twice. Therefore the user needs to decide upon a strategy where to cache/store the message between the passes. This could beMultiPassStrategy.writeMessageToFile(File)orMultiPassStrategy.keepMessageInMemory(), depending on message size and use-case.- Specified by:
withStrategyin interfaceVerifyCleartextSignatures.WithStrategy- Parameters:
multiPassStrategy- strategy- Returns:
- api handle
-
-