Class CipherFactory


  • public class CipherFactory
    extends java.lang.Object
    A factory for loading encryption keys from KeyProvider instances. Maintains a cache of loaded keys to avoid invoking the key provider on every call.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.crypto.Cipher getDecryptor​(java.lang.String transformation, java.lang.String keyAlias, byte[] iv)  
      javax.crypto.Cipher getEncryptor​(java.lang.String transformation, java.lang.String keyAlias)  
      • Methods inherited from class java.lang.Object

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

      • getEncryptor

        public javax.crypto.Cipher getEncryptor​(java.lang.String transformation,
                                                java.lang.String keyAlias)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getDecryptor

        public javax.crypto.Cipher getDecryptor​(java.lang.String transformation,
                                                java.lang.String keyAlias,
                                                byte[] iv)
                                         throws java.io.IOException
        Throws:
        java.io.IOException