Class KeyUtil


  • public class KeyUtil
    extends java.lang.Object
    Utility methods for keys.
    Author:
    Carl Harris
    • Constructor Summary

      Constructors 
      Constructor Description
      KeyUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.crypto.SecretKey aesKey​(int size)  
      static java.security.KeyPair ecKeyPair()  
      static byte[] randomKeyData​(int size)  
      static java.security.KeyPair rsaKeyPair()  
      • Methods inherited from class java.lang.Object

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

      • KeyUtil

        public KeyUtil()
    • Method Detail

      • rsaKeyPair

        public static java.security.KeyPair rsaKeyPair()
      • ecKeyPair

        public static java.security.KeyPair ecKeyPair()
      • aesKey

        public static javax.crypto.SecretKey aesKey​(int size)
      • randomKeyData

        public static byte[] randomKeyData​(int size)