Class JcePBEKeyEncryptionMethodGenerator


  • public class JcePBEKeyEncryptionMethodGenerator
    extends PBEKeyEncryptionMethodGenerator
    JCE based generator for password based encryption (PBE) data protection methods.
    • Constructor Detail

      • JcePBEKeyEncryptionMethodGenerator

        public JcePBEKeyEncryptionMethodGenerator​(char[] passPhrase,
                                                  PGPDigestCalculator s2kDigestCalculator)
        Create a PBE encryption method generator using the provided digest and the default S2K count for key generation.
        Parameters:
        passPhrase - the passphrase to use as the primary source of key material.
        s2kDigestCalculator - the digest calculator to use for key calculation.
      • JcePBEKeyEncryptionMethodGenerator

        public JcePBEKeyEncryptionMethodGenerator​(char[] passPhrase)
        Create a PBE encryption method generator using the default SHA-1 digest and the default S2K count for key generation.
        Parameters:
        passPhrase - the passphrase to use as the primary source of key material.
      • JcePBEKeyEncryptionMethodGenerator

        public JcePBEKeyEncryptionMethodGenerator​(char[] passPhrase,
                                                  PGPDigestCalculator s2kDigestCalculator,
                                                  int s2kCount)
        Create a PBE encryption method generator using the provided calculator and S2K count for key generation.
        Parameters:
        passPhrase - the passphrase to use as the primary source of key material.
        s2kDigestCalculator - the digest calculator to use for key calculation.
        s2kCount - the single byte S2K count to use.
      • JcePBEKeyEncryptionMethodGenerator

        public JcePBEKeyEncryptionMethodGenerator​(char[] passPhrase,
                                                  int s2kCount)
        Create a PBE encryption method generator using the default SHA-1 digest calculator and a S2K count other than the default for key generation.
        Parameters:
        passPhrase - the passphrase to use as the primary source of key material.
        s2kCount - the single byte S2K count to use.