Package org.bouncycastle.openpgp.api
Class AbstractOpenPGPKeySignatureGenerator
java.lang.Object
org.bouncycastle.openpgp.api.AbstractOpenPGPKeySignatureGenerator
- Direct Known Subclasses:
OpenPGPKeyEditor
,OpenPGPKeyGenerator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SignatureSubpacketsFunction
Standard AEAD encryption preferences (SEIPDv2).protected SignatureSubpacketsFunction
Standard compression algorithm preferences.protected SignatureSubpacketsFunction
Standard features to announce.protected SignatureSubpacketsFunction
Standard signature hash algorithm preferences.protected SignatureSubpacketsFunction
Standard symmetric-key encryption preferences (SEIPDv1).protected SignatureSubpacketsFunction
Standard signature subpackets for the direct-key signature.protected SignatureSubpacketsFunction
Standard signature subpackets for encryption subkey's binding signatures.protected SignatureSubpacketsFunction
Standard signature subpackets for signing subkey's binding signatures. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setDefaultAeadAlgorithmPreferences
(SignatureSubpacketsFunction aeadAlgorithmPreferences) void
setDefaultCompressionAlgorithmPreferences
(SignatureSubpacketsFunction compressionAlgorithmPreferences) void
void
setDefaultHashAlgorithmPreferences
(SignatureSubpacketsFunction hashAlgorithmPreferences) void
setDefaultSymmetricKeyPreferences
(SignatureSubpacketsFunction symmetricKeyPreferences) void
setDirectKeySignatureSubpackets
(SignatureSubpacketsFunction directKeySignatureSubpackets) void
setEncryptionSubkeySubpackets
(SignatureSubpacketsFunction encryptionSubkeySubpackets) void
setSigningSubkeySubpackets
(SignatureSubpacketsFunction signingSubkeySubpackets)
-
Field Details
-
defaultAeadAlgorithmPreferences
Standard AEAD encryption preferences (SEIPDv2). By default, only announce support for OCB + AES. -
defaultSymmetricKeyPreferences
Standard symmetric-key encryption preferences (SEIPDv1). By default, announce support for AES. -
defaultHashAlgorithmPreferences
Standard signature hash algorithm preferences. By default, only announce SHA3 and SHA2 algorithms. -
defaultCompressionAlgorithmPreferences
Standard compression algorithm preferences. By default, announce support for all known algorithms. -
defaultFeatures
Standard features to announce. By default, announce SEIPDv1 (modification detection) and SEIPDv2. -
signingSubkeySubpackets
Standard signature subpackets for signing subkey's binding signatures. Sets the keyflag subpacket to SIGN_DATA. -
encryptionSubkeySubpackets
Standard signature subpackets for encryption subkey's binding signatures. Sets the keyflag subpacket to ENCRYPT_STORAGE|ENCRYPT_COMMS. -
directKeySignatureSubpackets
Standard signature subpackets for the direct-key signature. Sets default features, hash-, compression-, symmetric-key-, and AEAD algorithm preferences.
-
-
Constructor Details
-
AbstractOpenPGPKeySignatureGenerator
public AbstractOpenPGPKeySignatureGenerator()
-
-
Method Details
-
setDefaultAeadAlgorithmPreferences
public void setDefaultAeadAlgorithmPreferences(SignatureSubpacketsFunction aeadAlgorithmPreferences) -
setDefaultSymmetricKeyPreferences
-
setDefaultHashAlgorithmPreferences
public void setDefaultHashAlgorithmPreferences(SignatureSubpacketsFunction hashAlgorithmPreferences) -
setDefaultCompressionAlgorithmPreferences
public void setDefaultCompressionAlgorithmPreferences(SignatureSubpacketsFunction compressionAlgorithmPreferences) -
setDirectKeySignatureSubpackets
public void setDirectKeySignatureSubpackets(SignatureSubpacketsFunction directKeySignatureSubpackets) -
setDefaultFeatures
-
setSigningSubkeySubpackets
-
setEncryptionSubkeySubpackets
-