JDK-8280491 : Release Note: Alternate Subject.getSubject and doAs APIs Created That Do Not Depend on Security Manager APIs
  • Type: Sub-task
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 18
  • Priority: P4
  • Status: Closed
  • Resolution: Delivered
  • Submitted: 2022-01-22
  • Updated: 2022-03-11
  • Resolved: 2022-01-24
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 18
18Resolved
Description
New methods `javax.security.auth.Subject::current` and `javax.security.auth.Subject::callAs` have been created as replacements for existing methods `javax.security.auth.Subject::getSubject` and `javax.security.auth.Subject::doAs`. The `javax.security.auth.Subject::getSubject` and `javax.security.auth.Subject::doAs` methods are deprecated for removal because they depend on Security Manager APIs deprecated in JEP 411.