Package org.pgpainless.sop
Class GenerateKeyImpl
java.lang.Object
org.pgpainless.sop.GenerateKeyImpl
- All Implemented Interfaces:
sop.operation.GenerateKey
Implementation of the
generate-keyoperation using PGPainless.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final sop.Profile
static final sop.Profile
static final List<sop.Profile>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsop.Ready
generate()
sop.operation.GenerateKey
noArmor()
sop.operation.GenerateKey
sop.operation.GenerateKey
sop.operation.GenerateKey
sop.operation.GenerateKey
withKeyPassword
(String 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.GenerateKey
profile, withKeyPassword
-
Field Details
-
CURVE25519_PROFILE
public static final sop.Profile CURVE25519_PROFILE -
RSA4096_PROFILE
public static final sop.Profile RSA4096_PROFILE -
SUPPORTED_PROFILES
-
-
Constructor Details
-
GenerateKeyImpl
public GenerateKeyImpl()
-
-
Method Details
-
noArmor
public sop.operation.GenerateKey noArmor()- Specified by:
noArmor
in interfacesop.operation.GenerateKey
-
userId
- Specified by:
userId
in interfacesop.operation.GenerateKey
-
withKeyPassword
- Specified by:
withKeyPassword
in interfacesop.operation.GenerateKey
-
profile
- Specified by:
profile
in interfacesop.operation.GenerateKey
-
signingOnly
public sop.operation.GenerateKey signingOnly()- Specified by:
signingOnly
in interfacesop.operation.GenerateKey
-
generate
public sop.Ready generate() throws sop.exception.SOPGPException.MissingArg, sop.exception.SOPGPException.UnsupportedAsymmetricAlgo- Specified by:
generate
in interfacesop.operation.GenerateKey
- Throws:
sop.exception.SOPGPException.MissingArg
sop.exception.SOPGPException.UnsupportedAsymmetricAlgo
-