Class InsecureCipherFactory


  • class InsecureCipherFactory
    extends java.lang.Object
    DO NOT USE Factory to create any cipher.

    This is a hack for WalkEncryption to create any cipher configured by the end-user. Using this class allows JGit to violate ErrorProne's security recommendations (InsecureCryptoUsage), which is not secure.

    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static javax.crypto.Cipher create​(java.lang.String algo)  
      • Methods inherited from class java.lang.Object

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

      • InsecureCipherFactory

        InsecureCipherFactory()
    • Method Detail

      • create

        static javax.crypto.Cipher create​(java.lang.String algo)
                                   throws java.security.NoSuchAlgorithmException,
                                          javax.crypto.NoSuchPaddingException
        Throws:
        java.security.NoSuchAlgorithmException
        javax.crypto.NoSuchPaddingException