Package org.pgpainless.implementation
Class BcImplementationFactory
- java.lang.Object
-
- org.pgpainless.implementation.ImplementationFactory
-
- org.pgpainless.implementation.BcImplementationFactory
-
public class BcImplementationFactory extends ImplementationFactory
-
-
Constructor Summary
Constructors Constructor Description BcImplementationFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator
getKeyFingerprintCalculator()
org.bouncycastle.openpgp.operator.PBEDataDecryptorFactory
getPBEDataDecryptorFactory(Passphrase passphrase)
org.bouncycastle.openpgp.operator.PBEKeyEncryptionMethodGenerator
getPBEKeyEncryptionMethodGenerator(Passphrase passphrase)
org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor
getPBESecretKeyDecryptor(Passphrase passphrase)
org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor
getPBESecretKeyEncryptor(org.bouncycastle.openpgp.PGPSecretKey secretKey, Passphrase passphrase)
org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor
getPBESecretKeyEncryptor(SymmetricKeyAlgorithm symmetricKeyAlgorithm, org.bouncycastle.openpgp.operator.PGPDigestCalculator digestCalculator, Passphrase passphrase)
org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor
getPBESecretKeyEncryptor(SymmetricKeyAlgorithm encryptionAlgorithm, HashAlgorithm hashAlgorithm, int s2kCount, Passphrase passphrase)
org.bouncycastle.openpgp.operator.PGPContentSignerBuilder
getPGPContentSignerBuilder(int keyAlgorithm, int hashAlgorithm)
org.bouncycastle.openpgp.operator.PGPContentVerifierBuilderProvider
getPGPContentVerifierBuilderProvider()
org.bouncycastle.openpgp.operator.PGPDataEncryptorBuilder
getPGPDataEncryptorBuilder(int symmetricKeyAlgorithm)
org.bouncycastle.openpgp.operator.bc.BcPGPDigestCalculatorProvider
getPGPDigestCalculatorProvider()
org.bouncycastle.openpgp.PGPKeyPair
getPGPKeyPair(PublicKeyAlgorithm algorithm, KeyPair keyPair, Date creationDate)
org.bouncycastle.openpgp.PGPObjectFactory
getPGPObjectFactory(byte[] bytes)
org.bouncycastle.openpgp.PGPObjectFactory
getPGPObjectFactory(InputStream inputStream)
org.bouncycastle.openpgp.operator.PublicKeyDataDecryptorFactory
getPublicKeyDataDecryptorFactory(org.bouncycastle.openpgp.PGPPrivateKey privateKey)
org.bouncycastle.openpgp.operator.PublicKeyKeyEncryptionMethodGenerator
getPublicKeyKeyEncryptionMethodGenerator(org.bouncycastle.openpgp.PGPPublicKey key)
org.bouncycastle.openpgp.operator.SessionKeyDataDecryptorFactory
provideSessionKeyDataDecryptorFactory(org.bouncycastle.openpgp.PGPSessionKey sessionKey)
-
Methods inherited from class org.pgpainless.implementation.ImplementationFactory
getInstance, getPBESecretKeyEncryptor, getPGPContentSignerBuilder, getPGPDataEncryptorBuilder, getPGPDigestCalculator, getPGPDigestCalculator, getV4FingerprintCalculator, setFactoryImplementation, toString
-
-
-
-
Constructor Detail
-
BcImplementationFactory
public BcImplementationFactory()
-
-
Method Detail
-
getPBESecretKeyEncryptor
public org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getPBESecretKeyEncryptor(org.bouncycastle.openpgp.PGPSecretKey secretKey, Passphrase passphrase) throws org.bouncycastle.openpgp.PGPException
- Specified by:
getPBESecretKeyEncryptor
in classImplementationFactory
- Throws:
org.bouncycastle.openpgp.PGPException
-
getPBESecretKeyEncryptor
public org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getPBESecretKeyEncryptor(SymmetricKeyAlgorithm symmetricKeyAlgorithm, org.bouncycastle.openpgp.operator.PGPDigestCalculator digestCalculator, Passphrase passphrase)
- Specified by:
getPBESecretKeyEncryptor
in classImplementationFactory
-
getPBESecretKeyDecryptor
public org.bouncycastle.openpgp.operator.PBESecretKeyDecryptor getPBESecretKeyDecryptor(Passphrase passphrase)
- Specified by:
getPBESecretKeyDecryptor
in classImplementationFactory
-
getPGPDigestCalculatorProvider
public org.bouncycastle.openpgp.operator.bc.BcPGPDigestCalculatorProvider getPGPDigestCalculatorProvider()
- Specified by:
getPGPDigestCalculatorProvider
in classImplementationFactory
-
getPGPContentVerifierBuilderProvider
public org.bouncycastle.openpgp.operator.PGPContentVerifierBuilderProvider getPGPContentVerifierBuilderProvider()
- Specified by:
getPGPContentVerifierBuilderProvider
in classImplementationFactory
-
getPGPContentSignerBuilder
public org.bouncycastle.openpgp.operator.PGPContentSignerBuilder getPGPContentSignerBuilder(int keyAlgorithm, int hashAlgorithm)
- Specified by:
getPGPContentSignerBuilder
in classImplementationFactory
-
getKeyFingerprintCalculator
public org.bouncycastle.openpgp.operator.KeyFingerPrintCalculator getKeyFingerprintCalculator()
- Specified by:
getKeyFingerprintCalculator
in classImplementationFactory
-
getPBEDataDecryptorFactory
public org.bouncycastle.openpgp.operator.PBEDataDecryptorFactory getPBEDataDecryptorFactory(Passphrase passphrase)
- Specified by:
getPBEDataDecryptorFactory
in classImplementationFactory
-
getPublicKeyDataDecryptorFactory
public org.bouncycastle.openpgp.operator.PublicKeyDataDecryptorFactory getPublicKeyDataDecryptorFactory(org.bouncycastle.openpgp.PGPPrivateKey privateKey)
- Specified by:
getPublicKeyDataDecryptorFactory
in classImplementationFactory
-
getPublicKeyKeyEncryptionMethodGenerator
public org.bouncycastle.openpgp.operator.PublicKeyKeyEncryptionMethodGenerator getPublicKeyKeyEncryptionMethodGenerator(org.bouncycastle.openpgp.PGPPublicKey key)
- Specified by:
getPublicKeyKeyEncryptionMethodGenerator
in classImplementationFactory
-
getPBEKeyEncryptionMethodGenerator
public org.bouncycastle.openpgp.operator.PBEKeyEncryptionMethodGenerator getPBEKeyEncryptionMethodGenerator(Passphrase passphrase)
- Specified by:
getPBEKeyEncryptionMethodGenerator
in classImplementationFactory
-
getPGPDataEncryptorBuilder
public org.bouncycastle.openpgp.operator.PGPDataEncryptorBuilder getPGPDataEncryptorBuilder(int symmetricKeyAlgorithm)
- Specified by:
getPGPDataEncryptorBuilder
in classImplementationFactory
-
getPGPKeyPair
public org.bouncycastle.openpgp.PGPKeyPair getPGPKeyPair(PublicKeyAlgorithm algorithm, KeyPair keyPair, Date creationDate) throws org.bouncycastle.openpgp.PGPException
- Specified by:
getPGPKeyPair
in classImplementationFactory
- Throws:
org.bouncycastle.openpgp.PGPException
-
getPBESecretKeyEncryptor
public org.bouncycastle.openpgp.operator.PBESecretKeyEncryptor getPBESecretKeyEncryptor(SymmetricKeyAlgorithm encryptionAlgorithm, HashAlgorithm hashAlgorithm, int s2kCount, Passphrase passphrase) throws org.bouncycastle.openpgp.PGPException
- Specified by:
getPBESecretKeyEncryptor
in classImplementationFactory
- Throws:
org.bouncycastle.openpgp.PGPException
-
provideSessionKeyDataDecryptorFactory
public org.bouncycastle.openpgp.operator.SessionKeyDataDecryptorFactory provideSessionKeyDataDecryptorFactory(org.bouncycastle.openpgp.PGPSessionKey sessionKey)
- Specified by:
provideSessionKeyDataDecryptorFactory
in classImplementationFactory
-
getPGPObjectFactory
public org.bouncycastle.openpgp.PGPObjectFactory getPGPObjectFactory(byte[] bytes)
- Specified by:
getPGPObjectFactory
in classImplementationFactory
-
getPGPObjectFactory
public org.bouncycastle.openpgp.PGPObjectFactory getPGPObjectFactory(InputStream inputStream)
- Specified by:
getPGPObjectFactory
in classImplementationFactory
-
-