mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-22 12:22:06 +01:00
Delegate verification operations to SOPVImpl
This commit is contained in:
parent
3ac273757a
commit
44be5aa981
1 changed files with 6 additions and 3 deletions
|
@ -6,6 +6,7 @@ package org.pgpainless.sop;
|
||||||
|
|
||||||
import org.pgpainless.util.ArmoredOutputStreamFactory;
|
import org.pgpainless.util.ArmoredOutputStreamFactory;
|
||||||
import sop.SOP;
|
import sop.SOP;
|
||||||
|
import sop.SOPV;
|
||||||
import sop.operation.Armor;
|
import sop.operation.Armor;
|
||||||
import sop.operation.ChangeKeyPassword;
|
import sop.operation.ChangeKeyPassword;
|
||||||
import sop.operation.Dearmor;
|
import sop.operation.Dearmor;
|
||||||
|
@ -36,10 +37,12 @@ public class SOPImpl implements SOP {
|
||||||
ArmoredOutputStreamFactory.setVersionInfo(null);
|
ArmoredOutputStreamFactory.setVersionInfo(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private final SOPV sopv = new SOPVImpl();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nonnull
|
@Nonnull
|
||||||
public Version version() {
|
public Version version() {
|
||||||
return new VersionImpl();
|
return sopv.version();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -81,13 +84,13 @@ public class SOPImpl implements SOP {
|
||||||
@Override
|
@Override
|
||||||
@Nonnull
|
@Nonnull
|
||||||
public DetachedVerify detachedVerify() {
|
public DetachedVerify detachedVerify() {
|
||||||
return new DetachedVerifyImpl();
|
return sopv.detachedVerify();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nonnull
|
@Nonnull
|
||||||
public InlineVerify inlineVerify() {
|
public InlineVerify inlineVerify() {
|
||||||
return new InlineVerifyImpl();
|
return sopv.inlineVerify();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in a new issue