mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8233884: Avoid looking up standard charsets in security libraries
Reviewed-by: coffeys
This commit is contained in:
parent
301e068935
commit
8e859259bc
48 changed files with 317 additions and 391 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2013, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -33,6 +33,8 @@ import java.security.cert.CertificateFactory;
|
|||
import java.security.cert.CertificateException;
|
||||
import java.util.*;
|
||||
|
||||
import static java.nio.charset.StandardCharsets.UTF_8;
|
||||
|
||||
import sun.security.pkcs.EncryptedPrivateKeyInfo;
|
||||
import sun.security.util.PolicyUtil;
|
||||
|
||||
|
@ -768,7 +770,7 @@ abstract class DomainKeyStore extends KeyStoreSpi {
|
|||
|
||||
try (InputStreamReader configurationReader =
|
||||
new InputStreamReader(
|
||||
PolicyUtil.getInputStream(configuration.toURL()), "UTF-8")) {
|
||||
PolicyUtil.getInputStream(configuration.toURL()), UTF_8)) {
|
||||
parser.read(configurationReader);
|
||||
domains = parser.getDomainEntries();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue