Package sop
Interface SOP
public interface SOP
Stateless OpenPGP Interface.
-
Method Summary
Modifier and TypeMethodDescriptionarmor()Convert binary OpenPGP data to ASCII.dearmor()Converts ASCII armored OpenPGP data to binary.decrypt()Decrypt a message.Create detached signatures.Verify detached signatures.encrypt()Encrypt a message.Extract a certificate (public key) from a secret key.Generate a secret key.Detach signatures from an inline signed message.Sign a message using inline signatures.Verify signatures of an inline-signed message.default DetachedSignsign()Create detached signatures.default DetachedVerifyverify()Verify detached signatures.version()Get information about the implementations name and version.
-
Method Details
-
version
Version version()Get information about the implementations name and version.- Returns:
- version
-
generateKey
GenerateKey generateKey()Generate a secret key. Customize the operation using the builderGenerateKey.- Returns:
- builder instance
-
extractCert
ExtractCert extractCert()Extract a certificate (public key) from a secret key. Customize the operation using the builderExtractCert.- Returns:
- builder instance
-
sign
Create detached signatures. Customize the operation using the builderDetachedSign. If you want to sign a message inline, useinlineSign()instead.- Returns:
- builder instance
-
detachedSign
DetachedSign detachedSign()Create detached signatures. Customize the operation using the builderDetachedSign. If you want to sign a message inline, useinlineSign()instead.- Returns:
- builder instance
-
inlineSign
InlineSign inlineSign()Sign a message using inline signatures. If you need to create detached signatures, usedetachedSign()instead.- Returns:
- builder instance
-
verify
Verify detached signatures. Customize the operation using the builderDetachedVerify. If you need to verify an inline-signed message, useinlineVerify()instead.- Returns:
- builder instance
-
detachedVerify
DetachedVerify detachedVerify()Verify detached signatures. Customize the operation using the builderDetachedVerify. If you need to verify an inline-signed message, useinlineVerify()instead.- Returns:
- builder instance
-
inlineVerify
InlineVerify inlineVerify()Verify signatures of an inline-signed message. If you need to verify detached signatures over a message, usedetachedVerify()instead.- Returns:
- builder instance
-
inlineDetach
InlineDetach inlineDetach()Detach signatures from an inline signed message.- Returns:
- builder instance
-
encrypt
Encrypt encrypt()Encrypt a message. Customize the operation using the builderEncrypt.- Returns:
- builder instance
-
decrypt
Decrypt decrypt()Decrypt a message. Customize the operation using the builderDecrypt.- Returns:
- builder instance
-
armor
Armor armor()Convert binary OpenPGP data to ASCII. Customize the operation using the builderArmor.- Returns:
- builder instance
-
dearmor
Dearmor dearmor()Converts ASCII armored OpenPGP data to binary. Customize the operation using the builderDearmor.- Returns:
- builder instance
-