Class BaseKeyGenerator

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected BaseKeyGenerator​(java.lang.String algName, int defaultKeySize, CipherKeyGenerator engine)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected javax.crypto.SecretKey engineGenerateKey()  
      protected void engineInit​(int keySize, java.security.SecureRandom random)  
      protected void engineInit​(java.security.SecureRandom random)  
      protected void engineInit​(java.security.spec.AlgorithmParameterSpec params, java.security.SecureRandom random)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • algName

        protected java.lang.String algName
      • keySize

        protected int keySize
      • defaultKeySize

        protected int defaultKeySize
      • uninitialised

        protected boolean uninitialised
    • Constructor Detail

      • BaseKeyGenerator

        protected BaseKeyGenerator​(java.lang.String algName,
                                   int defaultKeySize,
                                   CipherKeyGenerator engine)
    • Method Detail

      • engineInit

        protected void engineInit​(java.security.spec.AlgorithmParameterSpec params,
                                  java.security.SecureRandom random)
                           throws java.security.InvalidAlgorithmParameterException
        Specified by:
        engineInit in class javax.crypto.KeyGeneratorSpi
        Throws:
        java.security.InvalidAlgorithmParameterException
      • engineInit

        protected void engineInit​(java.security.SecureRandom random)
        Specified by:
        engineInit in class javax.crypto.KeyGeneratorSpi
      • engineInit

        protected void engineInit​(int keySize,
                                  java.security.SecureRandom random)
        Specified by:
        engineInit in class javax.crypto.KeyGeneratorSpi
      • engineGenerateKey

        protected javax.crypto.SecretKey engineGenerateKey()
        Specified by:
        engineGenerateKey in class javax.crypto.KeyGeneratorSpi