1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
|
/* PKITS.java
Copyright (C) 2003 Free Software Foundation, Inc.
Distributed under the GPL. See the file `COPYING' */
// Tags: not-a-test
package gnu.testlet.java.security.cert.pkix.pkits;
public class PKITS
{
static
{
String clazz = System.getProperty ("pkits.provider.class",
"gnu.java.security.provider.Gnu");
String provider = System.getProperty ("pkits.provider", "GNU");
try
{
if (java.security.Security.getProvider (provider) == null)
java.security.Security.addProvider ((java.security.Provider)
Class.forName (clazz).newInstance());
}
catch (Throwable t)
{
System.err.println ("WARNING: couldn't load PKITS test provider " +
provider + " with class " + clazz);
System.err.println (t);
t.printStackTrace();
}
}
// Constants.
// -------------------------------------------------------------------------
public static final String ANY_POLICY = "2.5.29.32.0";
public static final String NIST_TEST_POLICY_1 = "2.16.840.1.101.3.2.1.48.1";
public static final String NIST_TEST_POLICY_2 = "2.16.840.1.101.3.2.1.48.2";
public static final String NIST_TEST_POLICY_3 = "2.16.840.1.101.3.2.1.48.3";
public static final String NIST_TEST_POLICY_4 = "2.16.840.1.101.3.2.1.48.4";
public static final String NIST_TEST_POLICY_5 = "2.16.840.1.101.3.2.1.48.5";
public static final String NIST_TEST_POLICY_6 = "2.16.840.1.101.3.2.1.48.6";
}
|