Package org.pgpainless.sop
Class DetachedSignImpl
java.lang.Object
org.pgpainless.sop.DetachedSignImpl
- All Implemented Interfaces:
sop.operation.AbstractSign<sop.operation.DetachedSign>
,sop.operation.DetachedSign
Implementation of the
signoperation using PGPainless.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsop.ReadyWithResult<sop.SigningResult>
data
(InputStream data) sop.operation.DetachedSign
key
(InputStream keyIn) sop.operation.DetachedSign
mode
(sop.enums.SignAs mode) sop.operation.DetachedSign
noArmor()
sop.operation.DetachedSign
withKeyPassword
(byte[] password) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface sop.operation.AbstractSign
key, withKeyPassword
Methods inherited from interface sop.operation.DetachedSign
data
-
Constructor Details
-
DetachedSignImpl
public DetachedSignImpl()
-
-
Method Details
-
noArmor
public sop.operation.DetachedSign noArmor()- Specified by:
noArmor
in interfacesop.operation.AbstractSign<sop.operation.DetachedSign>
-
mode
public sop.operation.DetachedSign mode(sop.enums.SignAs mode) - Specified by:
mode
in interfacesop.operation.DetachedSign
-
key
public sop.operation.DetachedSign key(InputStream keyIn) throws sop.exception.SOPGPException.KeyCannotSign, sop.exception.SOPGPException.BadData, IOException - Specified by:
key
in interfacesop.operation.AbstractSign<sop.operation.DetachedSign>
- Throws:
sop.exception.SOPGPException.KeyCannotSign
sop.exception.SOPGPException.BadData
IOException
-
withKeyPassword
public sop.operation.DetachedSign withKeyPassword(byte[] password) - Specified by:
withKeyPassword
in interfacesop.operation.AbstractSign<sop.operation.DetachedSign>
-
data
- Specified by:
data
in interfacesop.operation.DetachedSign
- Throws:
IOException
-