Logo Search packages:      
Sourcecode: libgnucrypto-java version File versions  Download package

DifferentPoliciesTest3_3.java

/* DifferentPoliciesTest3_3.java
   Copyright (C) 2004  Free Software Foundation, Inc.

   Distributed under the GPL; see the file `COPYING' */

// Tags: PKITS

package gnu.testlet.gnu.crypto.pki.pkits;

import java.security.cert.PKIXParameters;
import java.util.HashSet;

00013 public class DifferentPoliciesTest3_3 extends BaseInvalidTest
{
  public DifferentPoliciesTest3_3()
  {
    super (new String[] { "data/certs/DifferentPoliciesTest3EE.crt",
                          "data/certs/PoliciesP2subCACert.crt",
                          "data/certs/GoodCACert.crt" },
           new String[] { "data/crls/PoliciesP2subCACRL.crl",
                          "data/crls/GoodCACRL.crl" });
  }

00024   protected void setupAdditionalParams (PKIXParameters params)
  {
    params.setExplicitPolicyRequired (true);
    HashSet policies = new HashSet();
    policies.add (NIST_TEST_POLICY_1);
    policies.add (NIST_TEST_POLICY_2);
    params.setInitialPolicies (policies);
  }
}

Generated by  Doxygen 1.6.0   Back to index