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
|
@ -29,10 +29,7 @@ import java.io.IOException;
|
|||
import java.io.OutputStream;
|
||||
import java.util.Enumeration;
|
||||
|
||||
import sun.security.util.Debug;
|
||||
import sun.security.util.DerOutputStream;
|
||||
import sun.security.util.DerValue;
|
||||
import sun.security.util.ObjectIdentifier;
|
||||
import sun.security.util.*;
|
||||
|
||||
/**
|
||||
* This class represents the Inhibit Any-Policy Extension.
|
||||
|
@ -76,7 +73,7 @@ implements CertAttrSet<String> {
|
|||
* Object identifier for "any-policy"
|
||||
*/
|
||||
public static ObjectIdentifier AnyPolicy_Id =
|
||||
ObjectIdentifier.of("2.5.29.32.0");
|
||||
ObjectIdentifier.of(KnownOIDs.CE_CERT_POLICIES_ANY);
|
||||
|
||||
/**
|
||||
* Attribute names.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue