Class Macs.Factory

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String algorithm  
      private int bSize  
      private int defBSize  
      private boolean etm  
      private java.lang.String name  
    • Constructor Summary

      Constructors 
      Constructor Description
      Factory​(java.lang.String name, java.lang.String algorithm, int bSize, int defBSize, boolean etm)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      BaseMAC create()  
      java.lang.String getName()  
      • Methods inherited from class java.lang.Object

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

      • name

        private final java.lang.String name
      • algorithm

        private final java.lang.String algorithm
      • bSize

        private final int bSize
      • defBSize

        private final int defBSize
      • etm

        private final boolean etm
    • Constructor Detail

      • Factory

        public Factory​(java.lang.String name,
                       java.lang.String algorithm,
                       int bSize,
                       int defBSize,
                       boolean etm)
    • Method Detail

      • getName

        public java.lang.String getName()
        Specified by:
        getName in interface Factory.Named<MAC>
        Returns:
        the name of this factory.
      • create

        public BaseMAC create()
        Specified by:
        create in interface Factory<MAC>
        Returns:
        a new object created using this factory.