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 Armorarmor()Convert binary OpenPGP data to ASCII.Dearmordearmor()Converts ASCII armored OpenPGP data to binary.Decryptdecrypt()Decrypt a message.DetachInbandSignatureAndMessagedetachInbandSignatureAndMessage()Encryptencrypt()Encrypt a message.ExtractCertextractCert()Extract a certificate (public key) from a secret key.GenerateKeygenerateKey()Generate a secret key.Signsign()Create detached signatures.Verifyverify()Verify detached signatures.Versionversion()Get information about the implementations name and version.
-
-
-
Constructor Detail
-
SOPImpl
public SOPImpl()
-
-
Method Detail
-
version
public Version version()
Description copied from interface:SOPGet information about the implementations name and version.
-
generateKey
public GenerateKey generateKey()
Description copied from interface:SOPGenerate a secret key. Customize the operation using the builderGenerateKey.- Specified by:
generateKeyin interfaceSOP- Returns:
- builder instance
-
extractCert
public ExtractCert extractCert()
Description copied from interface:SOPExtract a certificate (public key) from a secret key. Customize the operation using the builderExtractCert.- Specified by:
extractCertin interfaceSOP- Returns:
- builder instance
-
sign
public Sign sign()
Description copied from interface:SOPCreate detached signatures. Customize the operation using the builderSign.
-
verify
public Verify verify()
Description copied from interface:SOPVerify detached signatures. Customize the operation using the builderVerify.
-
encrypt
public Encrypt encrypt()
Description copied from interface:SOPEncrypt a message. Customize the operation using the builderEncrypt.
-
decrypt
public Decrypt decrypt()
Description copied from interface:SOPDecrypt a message. Customize the operation using the builderDecrypt.
-
armor
public Armor armor()
Description copied from interface:SOPConvert binary OpenPGP data to ASCII. Customize the operation using the builderArmor.
-
dearmor
public Dearmor dearmor()
Description copied from interface:SOPConverts ASCII armored OpenPGP data to binary. Customize the operation using the builderDearmor.
-
detachInbandSignatureAndMessage
public DetachInbandSignatureAndMessage detachInbandSignatureAndMessage()
- Specified by:
detachInbandSignatureAndMessagein interfaceSOP
-
-