Duplicate :
|
1) Set security property auth.policy.provider to a valid JAAS policy provider 2) In a custom classloader, creates protection domains with null permission sets - and ensure these protection domains are on the stack 3) In the test case, does Subject.getSubject(ACC), this will trigger SubjectDomainCombiner.combineJavaxPolicy to be called. When it reaches the protection domain with a null permission set, it'll bomb out with NullPointerException
|