Level up your Box knowledge with brand new learning paths on Box University. Visit training.box.com to get started

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.