Join BoxWorks in San Francisco Nov 12-13! Keynotes, product demos, and Box Master Classes. Reserve your spot!

Java SDK JWT authentication

New post

Comments

2 comments

  • TheFelix

    In the web I found a hack to get around this problem.

     

            // hack for JCE Unlimited Strength
            Field field = Class.forName("javax.crypto.JceSecurity").getDeclaredField("isRestricted");
            field.setAccessible(true);
    
            Field modifiersField = Field.class.getDeclaredField("modifiers");
            modifiersField.setAccessible(true);
            modifiersField.setInt(field, field.getModifiers() & ~Modifier.FINAL);
    
            field.set(null, false);
    0
    Comment actions Permalink
  • scottdodds

    Thanks  for following up and posting the solution for others to see! Greatly appreciated!

    0
    Comment actions Permalink

Please sign in to leave a comment.