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 SignatureSubpacketsFunctionStandard AEAD encryption preferences (SEIPDv2).protected SignatureSubpacketsFunctionStandard compression algorithm preferences.protected SignatureSubpacketsFunctionStandard features to announce.protected SignatureSubpacketsFunctionStandard signature hash algorithm preferences.protected SignatureSubpacketsFunctionStandard symmetric-key encryption preferences (SEIPDv1).protected SignatureSubpacketsFunctionStandard signature subpackets for the direct-key signature.protected SignatureSubpacketsFunctionStandard signature subpackets for encryption subkey's binding signatures.protected SignatureSubpacketsFunctionStandard signature subpackets for signing subkey's binding signatures. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetDefaultAeadAlgorithmPreferences(SignatureSubpacketsFunction aeadAlgorithmPreferences) voidsetDefaultCompressionAlgorithmPreferences(SignatureSubpacketsFunction compressionAlgorithmPreferences) voidvoidsetDefaultHashAlgorithmPreferences(SignatureSubpacketsFunction hashAlgorithmPreferences) voidsetDefaultSymmetricKeyPreferences(SignatureSubpacketsFunction symmetricKeyPreferences) voidsetDirectKeySignatureSubpackets(SignatureSubpacketsFunction directKeySignatureSubpackets) voidsetEncryptionSubkeySubpackets(SignatureSubpacketsFunction encryptionSubkeySubpackets) voidsetSigningSubkeySubpackets(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
-