This rule flags the use of getSubject() and doAs() methods in the javax.security.auth.Subject class. The getSubject() method is deprecated from Java SE 17 and marked "forRemoval = true". The doAs() method is deprecated from Java SE 18 and marked "forRemoval = true".
This rule has a automated fix that replaces the getSubject() method with current() method and doAs() method with callAs() method in javax.security.auth.Subject class. Copy the custom configuration to your application build file to enable the fix automation.
For more information see JDK-8275529. JDK-8280590.