Uploaded image for project: 'WildFly Elytron EE'
  1. WildFly Elytron EE
  2. ELYEE-53

Add SPI to set and get the java.security.Policy

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • 3.1.0.CR1
    • None
    • Authorization
    • None

      When setting a java.security.Policy if the Java version is below 24 this can be set globally as normal, for 24 or later we will need to maintain our own static reference as Java 24 no longer allows this to be set.

      For getting we should have come kind of PolicyUtil we can get, this will in turn wrap the java.security.Policy that is obtained based on the Java version as per part 1. This PolicyUtil will just need two methods, implies and refresh.

      This PolicyUtil wrapper is important as this will enable us to swap out the Policy API used by Jakarta Authorization 3.0.0 and our callers will be able to continue to use this generic API.

      The JaccDelegatingPolicy implementation should also be updated, only on Java versions below Java 24 should it obtain the existing Policy to wrap - from Java 24 and later it should skip that step. To fail safely if it is not wrapping an existing Policy object the fallback behaviour should be to return false.

              darran.lofthouse@redhat.com Darran Lofthouse
              darran.lofthouse@redhat.com Darran Lofthouse
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: