Package org.pgpainless.sop
Class GenerateKeyImpl
- java.lang.Object
-
- org.pgpainless.sop.GenerateKeyImpl
-
- All Implemented Interfaces:
sop.operation.GenerateKey
public class GenerateKeyImpl extends java.lang.Object implements sop.operation.GenerateKeyImplementation of thegenerate-key
operation using PGPainless.
-
-
Field Summary
Fields Modifier and Type Field Description static sop.ProfileCURVE25519_PROFILEstatic sop.ProfileRSA4096_PROFILEstatic java.util.List<sop.Profile>SUPPORTED_PROFILES
-
Constructor Summary
Constructors Constructor Description GenerateKeyImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description sop.Readygenerate()sop.operation.GenerateKeynoArmor()sop.operation.GenerateKeyprofile(java.lang.String profileName)sop.operation.GenerateKeyuserId(java.lang.String userId)sop.operation.GenerateKeywithKeyPassword(java.lang.String password)
-
-
-
Method Detail
-
noArmor
public sop.operation.GenerateKey noArmor()
- Specified by:
noArmorin interfacesop.operation.GenerateKey
-
userId
public sop.operation.GenerateKey userId(java.lang.String userId)
- Specified by:
userIdin interfacesop.operation.GenerateKey
-
withKeyPassword
public sop.operation.GenerateKey withKeyPassword(java.lang.String password)
- Specified by:
withKeyPasswordin interfacesop.operation.GenerateKey
-
profile
public sop.operation.GenerateKey profile(java.lang.String profileName)
- Specified by:
profilein interfacesop.operation.GenerateKey
-
generate
public sop.Ready generate() throws sop.exception.SOPGPException.MissingArg, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo- Specified by:
generatein interfacesop.operation.GenerateKey- Throws:
sop.exception.SOPGPException.MissingArgsop.exception.SOPGPException.UnsupportedAsymmetricAlgo
-
-