mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8242151: Improve OID mapping and reuse among JDK security providers for aliases registration
Use sun.security.util.KnownOIDs enum instead of hardcoding oid strings everywhere Reviewed-by: weijun
This commit is contained in:
parent
a97932d8fc
commit
080b3b83eb
79 changed files with 2016 additions and 2080 deletions
|
@ -76,7 +76,7 @@ public final class PKCS12Attribute implements KeyStore.Entry.Attribute {
|
|||
// Validate name
|
||||
ObjectIdentifier type;
|
||||
try {
|
||||
type = new ObjectIdentifier(name);
|
||||
type = ObjectIdentifier.of(name);
|
||||
} catch (IOException e) {
|
||||
throw new IllegalArgumentException("Incorrect format: name", e);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue