Class KeyUtils


  • public class KeyUtils
    extends Object
    JCA key utilities.
    Version:
    2018-02-11
    Author:
    Vladimir Dzhuvinov
    • Method Detail

      • toAESKey

        public static SecretKey toAESKey​(SecretKey secretKey)
        Returns the specified secret key as a secret key with its algorithm set to "AES".
        Parameters:
        secretKey - The secret key, null if not specified.
        Returns:
        The AES secret key, null if not specified.