Class ClassCryptFactory

  • All Implemented Interfaces:
    ICryptFactory

    public class ClassCryptFactory
    extends java.lang.Object
    implements ICryptFactory
    Crypt factory that creates the ICrypt object by instantiating a provided class. The class must implement ICrypt.
    Author:
    Igor Vaynberg (ivaynberg)
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassCryptFactory​(java.lang.Class<?> cryptClass, java.lang.String encryptionKey)
      Construct.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ICrypt newCrypt()  
      • Methods inherited from class java.lang.Object

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

      • ClassCryptFactory

        public ClassCryptFactory​(java.lang.Class<?> cryptClass,
                                 java.lang.String encryptionKey)
        Construct.
        Parameters:
        cryptClass - class that will be instantiated to represent the ICrypt object
        encryptionKey - encryption key