mirror of
https://github.com/pgpainless/pgpainless.git
synced 2024-11-22 20:32:05 +01:00
Add comments
This commit is contained in:
parent
bd1949871a
commit
8066650584
1 changed files with 6 additions and 0 deletions
|
@ -30,6 +30,8 @@ import javax.annotation.Nonnull;
|
||||||
* <pre> {@code
|
* <pre> {@code
|
||||||
* SOP sop = new SOPImpl();
|
* SOP sop = new SOPImpl();
|
||||||
* }</pre>
|
* }</pre>
|
||||||
|
*
|
||||||
|
* For a slimmed down interface that merely focuses on signature verification, see {@link SOPVImpl}.
|
||||||
*/
|
*/
|
||||||
public class SOPImpl implements SOP {
|
public class SOPImpl implements SOP {
|
||||||
|
|
||||||
|
@ -37,11 +39,13 @@ public class SOPImpl implements SOP {
|
||||||
ArmoredOutputStreamFactory.setVersionInfo(null);
|
ArmoredOutputStreamFactory.setVersionInfo(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Delegate for sig verification operations
|
||||||
private final SOPV sopv = new SOPVImpl();
|
private final SOPV sopv = new SOPVImpl();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nonnull
|
@Nonnull
|
||||||
public Version version() {
|
public Version version() {
|
||||||
|
// Delegate to SOPV
|
||||||
return sopv.version();
|
return sopv.version();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -84,12 +88,14 @@ public class SOPImpl implements SOP {
|
||||||
@Override
|
@Override
|
||||||
@Nonnull
|
@Nonnull
|
||||||
public DetachedVerify detachedVerify() {
|
public DetachedVerify detachedVerify() {
|
||||||
|
// Delegate to SOPV
|
||||||
return sopv.detachedVerify();
|
return sopv.detachedVerify();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nonnull
|
@Nonnull
|
||||||
public InlineVerify inlineVerify() {
|
public InlineVerify inlineVerify() {
|
||||||
|
// Delegate to SOPV
|
||||||
return sopv.inlineVerify();
|
return sopv.inlineVerify();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue