Package org.pgpainless.implementation
Class ImplementationFactory
- java.lang.Object
-
- org.pgpainless.implementation.ImplementationFactory
-
- Direct Known Subclasses:
BcImplementationFactory,JceImplementationFactory
public abstract class ImplementationFactory extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ImplementationFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImplementationFactorygetInstance()org.bouncycastle.openpgp.operator.KeyFingerPrintCalculatorgetKeyFingerprintCalculator()org.bouncycastle.openpgp.operator.PBEDataDecryptorFactorygetPBEDataDecryptorFactory(Passphrase passphrase)org.bouncycastle.openpgp.operator.PBEKeyEncryptionMethodGeneratorgetPBEKeyEncryptionMethodGenerator(Passphrase passphrase)org.bouncycastle.openpgp.operator.PBESecretKeyDecryptorgetPBESecretKeyDecryptor(Passphrase passphrase)org.bouncycastle.openpgp.operator.PBESecretKeyEncryptorgetPBESecretKeyEncryptor(org.bouncycastle.openpgp.PGPSecretKey secretKey, Passphrase passphrase)org.bouncycastle.openpgp.operator.PBESecretKeyEncryptorgetPBESecretKeyEncryptor(SymmetricKeyAlgorithm symmetricKeyAlgorithm, org.bouncycastle.openpgp.operator.PGPDigestCalculator digestCalculator, Passphrase passphrase)org.bouncycastle.openpgp.operator.PBESecretKeyEncryptorgetPBESecretKeyEncryptor(SymmetricKeyAlgorithm encryptionAlgorithm, HashAlgorithm hashAlgorithm, int s2kCount, Passphrase passphrase)org.bouncycastle.openpgp.operator.PBESecretKeyEncryptorgetPBESecretKeyEncryptor(SymmetricKeyAlgorithm symmetricKeyAlgorithm, Passphrase passphrase)org.bouncycastle.openpgp.operator.PGPContentSignerBuildergetPGPContentSignerBuilder(int keyAlgorithm, int hashAlgorithm)org.bouncycastle.openpgp.operator.PGPContentSignerBuildergetPGPContentSignerBuilder(PublicKeyAlgorithm keyAlgorithm, HashAlgorithm hashAlgorithm)org.bouncycastle.openpgp.operator.PGPContentVerifierBuilderProvidergetPGPContentVerifierBuilderProvider()org.bouncycastle.openpgp.operator.PGPDataEncryptorBuildergetPGPDataEncryptorBuilder(int symmetricKeyAlgorithm)org.bouncycastle.openpgp.operator.PGPDataEncryptorBuildergetPGPDataEncryptorBuilder(SymmetricKeyAlgorithm symmetricKeyAlgorithm)org.bouncycastle.openpgp.operator.PGPDigestCalculatorgetPGPDigestCalculator(int algorithm)org.bouncycastle.openpgp.operator.PGPDigestCalculatorgetPGPDigestCalculator(HashAlgorithm algorithm)org.bouncycastle.openpgp.operator.PGPDigestCalculatorProvidergetPGPDigestCalculatorProvider()org.bouncycastle.openpgp.PGPKeyPairgetPGPKeyPair(PublicKeyAlgorithm algorithm, java.security.KeyPair keyPair, java.util.Date creationDate)org.bouncycastle.openpgp.PGPKeyPairgetPGPKeyPair(PublicKeyAlgorithm algorithm, org.bouncycastle.crypto.AsymmetricCipherKeyPair keyPair, java.util.Date creationDate)org.bouncycastle.openpgp.operator.PublicKeyDataDecryptorFactorygetPublicKeyDataDecryptorFactory(org.bouncycastle.openpgp.PGPPrivateKey privateKey)org.bouncycastle.openpgp.operator.PublicKeyKeyEncryptionMethodGeneratorgetPublicKeyKeyEncryptionMethodGenerator(org.bouncycastle.openpgp.PGPPublicKey key)static voidsetFactoryImplementation(ImplementationFactory implementation)
-
-
-
Method Detail
-
setFactoryImplementation
public static void setFactoryImplementation(ImplementationFactory implementation)
-
getInstance
public static ImplementationFactory getInstance()
-
getPBESecretKeyEncryptor
public org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getPBESecretKeyEncryptor(SymmetricKeyAlgorithm symmetricKeyAlgorithm, Passphrase passphrase) throws org.bouncycastle.openpgp.PGPException
- Throws:
org.bouncycastle.openpgp.PGPException
-
getPBESecretKeyEncryptor
public org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getPBESecretKeyEncryptor(org.bouncycastle.openpgp.PGPSecretKey secretKey, Passphrase passphrase) throws org.bouncycastle.openpgp.PGPException- Throws:
org.bouncycastle.openpgp.PGPException
-
getPBESecretKeyEncryptor
public org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getPBESecretKeyEncryptor(SymmetricKeyAlgorithm symmetricKeyAlgorithm, org.bouncycastle.openpgp.operator.PGPDigestCalculator digestCalculator, Passphrase passphrase)
-
getPBESecretKeyDecryptor
public org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor getPBESecretKeyDecryptor(Passphrase passphrase) throws org.bouncycastle.openpgp.PGPException
- Throws:
org.bouncycastle.openpgp.PGPException
-
getPGPDigestCalculator
public org.bouncycastle.openpgp.operator.PGPDigestCalculator getPGPDigestCalculator(HashAlgorithm algorithm) throws org.bouncycastle.openpgp.PGPException
- Throws:
org.bouncycastle.openpgp.PGPException
-
getPGPDigestCalculator
public org.bouncycastle.openpgp.operator.PGPDigestCalculator getPGPDigestCalculator(int algorithm) throws org.bouncycastle.openpgp.PGPException- Throws:
org.bouncycastle.openpgp.PGPException
-
getPGPDigestCalculatorProvider
public org.bouncycastle.openpgp.operator.PGPDigestCalculatorProvider getPGPDigestCalculatorProvider() throws org.bouncycastle.openpgp.PGPException- Throws:
org.bouncycastle.openpgp.PGPException
-
getPGPContentVerifierBuilderProvider
public org.bouncycastle.openpgp.operator.PGPContentVerifierBuilderProvider getPGPContentVerifierBuilderProvider()
-
getPGPContentSignerBuilder
public org.bouncycastle.openpgp.operator.PGPContentSignerBuilder getPGPContentSignerBuilder(PublicKeyAlgorithm keyAlgorithm, HashAlgorithm hashAlgorithm)
-
getPGPContentSignerBuilder
public org.bouncycastle.openpgp.operator.PGPContentSignerBuilder getPGPContentSignerBuilder(int keyAlgorithm, int hashAlgorithm)
-
getKeyFingerprintCalculator
public org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator getKeyFingerprintCalculator()
-
getPBEDataDecryptorFactory
public org.bouncycastle.openpgp.operator.PBEDataDecryptorFactory getPBEDataDecryptorFactory(Passphrase passphrase) throws org.bouncycastle.openpgp.PGPException
- Throws:
org.bouncycastle.openpgp.PGPException
-
getPublicKeyDataDecryptorFactory
public org.bouncycastle.openpgp.operator.PublicKeyDataDecryptorFactory getPublicKeyDataDecryptorFactory(org.bouncycastle.openpgp.PGPPrivateKey privateKey)
-
getPublicKeyKeyEncryptionMethodGenerator
public org.bouncycastle.openpgp.operator.PublicKeyKeyEncryptionMethodGenerator getPublicKeyKeyEncryptionMethodGenerator(org.bouncycastle.openpgp.PGPPublicKey key)
-
getPBEKeyEncryptionMethodGenerator
public org.bouncycastle.openpgp.operator.PBEKeyEncryptionMethodGenerator getPBEKeyEncryptionMethodGenerator(Passphrase passphrase)
-
getPGPDataEncryptorBuilder
public org.bouncycastle.openpgp.operator.PGPDataEncryptorBuilder getPGPDataEncryptorBuilder(SymmetricKeyAlgorithm symmetricKeyAlgorithm)
-
getPGPDataEncryptorBuilder
public org.bouncycastle.openpgp.operator.PGPDataEncryptorBuilder getPGPDataEncryptorBuilder(int symmetricKeyAlgorithm)
-
getPGPKeyPair
public org.bouncycastle.openpgp.PGPKeyPair getPGPKeyPair(PublicKeyAlgorithm algorithm, java.security.KeyPair keyPair, java.util.Date creationDate) throws org.bouncycastle.openpgp.PGPException
- Throws:
org.bouncycastle.openpgp.PGPException
-
getPGPKeyPair
public org.bouncycastle.openpgp.PGPKeyPair getPGPKeyPair(PublicKeyAlgorithm algorithm, org.bouncycastle.crypto.AsymmetricCipherKeyPair keyPair, java.util.Date creationDate) throws org.bouncycastle.openpgp.PGPException, java.security.NoSuchAlgorithmException, java.io.IOException, java.security.spec.InvalidKeySpecException
- Throws:
org.bouncycastle.openpgp.PGPExceptionjava.security.NoSuchAlgorithmExceptionjava.io.IOExceptionjava.security.spec.InvalidKeySpecException
-
getPBESecretKeyEncryptor
public org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getPBESecretKeyEncryptor(SymmetricKeyAlgorithm encryptionAlgorithm, HashAlgorithm hashAlgorithm, int s2kCount, Passphrase passphrase) throws org.bouncycastle.openpgp.PGPException
- Throws:
org.bouncycastle.openpgp.PGPException
-
-