RFR: 8345221: Replace legacy with new Provider APIs in SunNativeGSS [v3]

duke duke at openjdk.org
Tue Dec 3 18:02:43 UTC 2024


On Mon, 2 Dec 2024 22:31:01 GMT, Francisco Ferrari Bihurriet <fferrari at openjdk.org> wrote:

>> Hi, this pull request modifies the _SunNativeGSS_ security provider to stop using the legacy Provider APIs (`Provider::putAll`) and start using the new ones (`Provider::putService`).
>> 
>> Changes in this pull request have been removed from #15539, as they aren't a dependency for that work, but just an opportunistic enhancement we made there. As a consequence, this pull request is the reverse of 29e9cba970fdbbd2192c8d2de1e93a03b1b0d1e1, the removal of this work from #15539 (except that we later renamed `constructMechMap` as `getMechOIDs`, and `sun.security.action.PutAllAction` was removed by 940aa7c4cf1bf770690660c8bb21fb3ddc5186e4, so it is no longer part of this pull request).
>> 
>> #### Testing
>> 
>> As part of our testing, we observed all the tests pass in the following categories:
>> 
>> * `jdk:tier1` (see [run 12073939529](https://github.com/franferrax/jdk/actions/runs/12073939529) and [run 12129046506](https://github.com/franferrax/jdk/actions/runs/12129046506))
>> * `jdk/java/security`
>> 
>> Additionally, we found no regressions with respect to the baseline (959fa4a1a35a1bb650ec5888efaf3d0fc8cfb025) in the following category:
>> 
>> * `jdk/sun/security`
>>     * We obtained the same results in both codebases (the two `<reportDir>/text/summary.txt` files are identical).
>>       | Results                 |     |
>>       |-------------------------|----:|
>>       | Tests that passed       | 797 |
>>       | Tests that failed       |  16 |
>>       | Tests that had errors   |   2 |
>>       | Tests that were not run |  35 |
>>       | Total                   | 850 |
>>     * In particular, the tests that enable the _SunNativeGSS_ security provider, all passed:
>>         * [jdk/sun/security/jgss/GssContextCleanup.java](https://github.com/openjdk/jdk/blob/959fa4a1a35a1bb650ec5888efaf3d0fc8cfb025/test/jdk/sun/security/jgss/GssContextCleanup.java#L48)
>>         * [jdk/sun/security/jgss/GssNameCleanup.java](https://github.com/openjdk/jdk/blob/959fa4a1a35a1bb650ec5888efaf3d0fc8cfb025/test/jdk/sun/security/jgss/GssNameCleanup.java#L47)
>>         * [jdk/sun/security/krb5/auto/BasicProc.java](https://github.com/openjdk/jdk/blob/959fa4a1a35a1bb650ec5888efaf3d0fc8cfb025/test/jdk/sun/security/krb5/auto/BasicProc.java#L276)
>>         * [jdk/sun/security/krb5/auto/Cleaners.java](https://github.com/openjdk/jdk/blob/959fa4a1a35a1bb650ec5888efaf3d0fc8cfb025/test/jdk/sun/security/krb5/auto/Cleaners.java#L176)
>>         * [jdk/sun/security/krb5/auto/ReplayCacheTestProc.java](https://g...
>
> Francisco Ferrari Bihurriet has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains three commits:
> 
>  - Merge openjdk/master into JDK-8345221
>  - Method rename.
>    
>    Co-authored-by: Martin Balao Alonso <mbalao at redhat.com>
>    Co-authored-by: Francisco Ferrari Bihurriet <fferrari at redhat.com>
>  - 8345221: Replace legacy with new Provider APIs in SunNativeGSS
>    
>    Co-authored-by: Francisco Ferrari Bihurriet <fferrari at redhat.com>
>    Co-authored-by: Martin Balao <mbalao at redhat.com>

@franferrax 
Your change (at version 14a0e135dab9f872ebace834a977c990a87908fd) is now ready to be sponsored by a Committer.

-------------

PR Comment: https://git.openjdk.org/jdk/pull/22461#issuecomment-2515244171


More information about the security-dev mailing list