KeyPurposeId.java
上传用户:lior1029
上传日期:2013-05-07
资源大小:209k
文件大小:1k
源码类别:

CA认证

开发平台:

Java

  1. package org.bouncycastle.asn1.x509;
  2. import java.io.*;
  3. import java.util.*;
  4. import org.bouncycastle.asn1.*;
  5. /**
  6.  *  KeyPurposeIds
  7.  *  <pre>
  8.  *      KeyPurposeId ::= OBJECT IDENTIFIER
  9.  *  </pre>
  10.  */
  11. public class KeyPurposeId
  12.     extends DERObjectIdentifier
  13. {
  14.     private static final String id_kp = "1.3.6.1.5.5.7.3";
  15.     private KeyPurposeId(
  16.         String  id)
  17.     {
  18.         super(id);
  19.     }
  20.     public static final KeyPurposeId anyExtendedKeyUsage = new KeyPurposeId(X509Extensions.ExtendedKeyUsage.getId() + ".0");
  21.     public static final KeyPurposeId id_kp_serverAuth = new KeyPurposeId(id_kp + ".1");
  22.     public static final KeyPurposeId id_kp_clientAuth = new KeyPurposeId(id_kp + ".2");
  23.     public static final KeyPurposeId id_kp_codeSigning = new KeyPurposeId(id_kp + ".3");
  24.     public static final KeyPurposeId id_kp_emailProtection = new KeyPurposeId(id_kp + ".4");
  25.     public static final KeyPurposeId id_kp_ipsecEndSystem = new KeyPurposeId(id_kp + ".5");
  26.     public static final KeyPurposeId id_kp_ipsecTunnel = new KeyPurposeId(id_kp + ".6");
  27.     public static final KeyPurposeId id_kp_ipsecUser = new KeyPurposeId(id_kp + ".7");
  28.     public static final KeyPurposeId id_kp_timeStamping = new KeyPurposeId(id_kp + ".8");
  29. }