Class PEMUtilities


  • final class PEMUtilities
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      PEMUtilities()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static byte[] crypt​(boolean encrypt, java.lang.String provider, byte[] bytes, char[] password, java.lang.String dekAlgName, byte[] iv)  
      private static javax.crypto.SecretKey getKey​(char[] password, java.lang.String algorithm, int keyLength, byte[] salt)  
      private static javax.crypto.SecretKey getKey​(char[] password, java.lang.String algorithm, int keyLength, byte[] salt, boolean des2)  
      • Methods inherited from class java.lang.Object

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

      • PEMUtilities

        PEMUtilities()
    • Method Detail

      • crypt

        static byte[] crypt​(boolean encrypt,
                            java.lang.String provider,
                            byte[] bytes,
                            char[] password,
                            java.lang.String dekAlgName,
                            byte[] iv)
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • getKey

        private static javax.crypto.SecretKey getKey​(char[] password,
                                                     java.lang.String algorithm,
                                                     int keyLength,
                                                     byte[] salt)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • getKey

        private static javax.crypto.SecretKey getKey​(char[] password,
                                                     java.lang.String algorithm,
                                                     int keyLength,
                                                     byte[] salt,
                                                     boolean des2)
                                              throws java.io.IOException
        Throws:
        java.io.IOException