Package org.pgpainless.sop
Class SOPImpl
- java.lang.Object
-
- org.pgpainless.sop.SOPImpl
-
-
Constructor Summary
Constructors Constructor Description SOPImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Armor
armor()
Convert binary OpenPGP data to ASCII.Dearmor
dearmor()
Converts ASCII armored OpenPGP data to binary.Decrypt
decrypt()
Decrypt a message.DetachInbandSignatureAndMessage
detachInbandSignatureAndMessage()
Encrypt
encrypt()
Encrypt a message.ExtractCert
extractCert()
Extract a certificate (public key) from a secret key.GenerateKey
generateKey()
Generate a secret key.Sign
sign()
Create detached signatures.Verify
verify()
Verify detached signatures.Version
version()
Get information about the implementations name and version.
-
-
-
Constructor Detail
-
SOPImpl
public SOPImpl()
-
-
Method Detail
-
version
public Version version()
Description copied from interface:SOP
Get information about the implementations name and version.
-
generateKey
public GenerateKey generateKey()
Description copied from interface:SOP
Generate a secret key. Customize the operation using the builderGenerateKey
.- Specified by:
generateKey
in interfaceSOP
- Returns:
- builder instance
-
extractCert
public ExtractCert extractCert()
Description copied from interface:SOP
Extract a certificate (public key) from a secret key. Customize the operation using the builderExtractCert
.- Specified by:
extractCert
in interfaceSOP
- Returns:
- builder instance
-
sign
public Sign sign()
Description copied from interface:SOP
Create detached signatures. Customize the operation using the builderSign
.
-
verify
public Verify verify()
Description copied from interface:SOP
Verify detached signatures. Customize the operation using the builderVerify
.
-
encrypt
public Encrypt encrypt()
Description copied from interface:SOP
Encrypt a message. Customize the operation using the builderEncrypt
.
-
decrypt
public Decrypt decrypt()
Description copied from interface:SOP
Decrypt a message. Customize the operation using the builderDecrypt
.
-
armor
public Armor armor()
Description copied from interface:SOP
Convert binary OpenPGP data to ASCII. Customize the operation using the builderArmor
.
-
dearmor
public Dearmor dearmor()
Description copied from interface:SOP
Converts ASCII armored OpenPGP data to binary. Customize the operation using the builderDearmor
.
-
detachInbandSignatureAndMessage
public DetachInbandSignatureAndMessage detachInbandSignatureAndMessage()
- Specified by:
detachInbandSignatureAndMessage
in interfaceSOP
-
-