code: public static Cipher getCipher(String algorithm) throws GeneralSecurityException {
          return PROVIDER != null ? Cipher.getInstance(algorithm, PROVIDER)
                                  : Cipher.getInstance(algorithm);
      }
docs: Workaround for JENKINS-6459 / http://java.net/jira/browse/GLASSFISH-11862
  This method uses specific provider selected via hudson.util.Secret.provider system property
  to provide a workaround for the above bug where default provide gives an unusable instance.
  (Glassfish Enterprise users should set value of this property to "SunJCE")