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.Profilestatic final sop.Profilestatic final List<sop.Profile> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsop.Readygenerate()sop.operation.GenerateKeynoArmor()sop.operation.GenerateKeysop.operation.GenerateKeysop.operation.GenerateKeysop.operation.GenerateKeywithKeyPassword(String password) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
noArmorin interfacesop.operation.GenerateKey
-
userId
- Specified by:
userIdin interfacesop.operation.GenerateKey
-
withKeyPassword
- Specified by:
withKeyPasswordin interfacesop.operation.GenerateKey
-
profile
- Specified by:
profilein interfacesop.operation.GenerateKey
-
signingOnly
public sop.operation.GenerateKey signingOnly()- Specified by:
signingOnlyin 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
-