Class MacSupplier


  • public final class MacSupplier
    extends Object
    • Field Detail

      • HMAC_SHA256

        public static final MacSupplier HMAC_SHA256
    • Constructor Detail

      • MacSupplier

        public MacSupplier​(String macAlgorithm)
    • Method Detail

      • keyed

        public ObjectPool.Lease<Mac> keyed​(SecretKey key)
        Leases a reusable MAC object initialized with the given key.
        Parameters:
        key - Key to use in keyed MAC
        Returns:
        A lease supplying a refurbished MAC