package org.bouncycastle.asn1.x509;

import org.bouncycastle.asn1.DERObjectIdentifier;

The KeyPurposeId object.
    KeyPurposeId ::= OBJECT IDENTIFIER
    id-kp ::= OBJECT IDENTIFIER { iso(1) identified-organization(3) 
         dod(6) internet(1) security(5) mechanisms(5) pkix(7) 3}
/** * The KeyPurposeId object. * <pre> * KeyPurposeId ::= OBJECT IDENTIFIER * * id-kp ::= OBJECT IDENTIFIER { iso(1) identified-organization(3) * dod(6) internet(1) security(5) mechanisms(5) pkix(7) 3} * * </pre> */
public class KeyPurposeId extends DERObjectIdentifier { private static final String id_kp = "1.3.6.1.5.5.7.3";
Create a KeyPurposeId from an OID string
Params:
  • id – OID String. E.g. "1.3.6.1.5.5.7.3.1"
/** * Create a KeyPurposeId from an OID string * * @param id OID String. E.g. "1.3.6.1.5.5.7.3.1" */
public KeyPurposeId( String id) { super(id); }
{ 2 5 29 37 0 }
/** * { 2 5 29 37 0 } */
public static final KeyPurposeId anyExtendedKeyUsage = new KeyPurposeId(X509Extensions.ExtendedKeyUsage.getId() + ".0");
{ id-kp 1 }
/** * { id-kp 1 } */
public static final KeyPurposeId id_kp_serverAuth = new KeyPurposeId(id_kp + ".1");
{ id-kp 2 }
/** * { id-kp 2 } */
public static final KeyPurposeId id_kp_clientAuth = new KeyPurposeId(id_kp + ".2");
{ id-kp 3 }
/** * { id-kp 3 } */
public static final KeyPurposeId id_kp_codeSigning = new KeyPurposeId(id_kp + ".3");
{ id-kp 4 }
/** * { id-kp 4 } */
public static final KeyPurposeId id_kp_emailProtection = new KeyPurposeId(id_kp + ".4");
Usage deprecated by RFC4945 - was { id-kp 5 }
/** * Usage deprecated by RFC4945 - was { id-kp 5 } */
public static final KeyPurposeId id_kp_ipsecEndSystem = new KeyPurposeId(id_kp + ".5");
Usage deprecated by RFC4945 - was { id-kp 6 }
/** * Usage deprecated by RFC4945 - was { id-kp 6 } */
public static final KeyPurposeId id_kp_ipsecTunnel = new KeyPurposeId(id_kp + ".6");
Usage deprecated by RFC4945 - was { idkp 7 }
/** * Usage deprecated by RFC4945 - was { idkp 7 } */
public static final KeyPurposeId id_kp_ipsecUser = new KeyPurposeId(id_kp + ".7");
{ id-kp 8 }
/** * { id-kp 8 } */
public static final KeyPurposeId id_kp_timeStamping = new KeyPurposeId(id_kp + ".8");
{ id-kp 9 }
/** * { id-kp 9 } */
public static final KeyPurposeId id_kp_OCSPSigning = new KeyPurposeId(id_kp + ".9");
{ id-kp 10 }
/** * { id-kp 10 } */
public static final KeyPurposeId id_kp_dvcs = new KeyPurposeId(id_kp + ".10");
{ id-kp 11 }
/** * { id-kp 11 } */
public static final KeyPurposeId id_kp_sbgpCertAAServerAuth = new KeyPurposeId(id_kp + ".11");
{ id-kp 12 }
/** * { id-kp 12 } */
public static final KeyPurposeId id_kp_scvp_responder = new KeyPurposeId(id_kp + ".12");
{ id-kp 13 }
/** * { id-kp 13 } */
public static final KeyPurposeId id_kp_eapOverPPP = new KeyPurposeId(id_kp + ".13");
{ id-kp 14 }
/** * { id-kp 14 } */
public static final KeyPurposeId id_kp_eapOverLAN = new KeyPurposeId(id_kp + ".14");
{ id-kp 15 }
/** * { id-kp 15 } */
public static final KeyPurposeId id_kp_scvpServer = new KeyPurposeId(id_kp + ".15");
{ id-kp 16 }
/** * { id-kp 16 } */
public static final KeyPurposeId id_kp_scvpClient = new KeyPurposeId(id_kp + ".16");
{ id-kp 17 }
/** * { id-kp 17 } */
public static final KeyPurposeId id_kp_ipsecIKE = new KeyPurposeId(id_kp + ".17");
{ id-kp 18 }
/** * { id-kp 18 } */
public static final KeyPurposeId id_kp_capwapAC = new KeyPurposeId(id_kp + ".18");
{ id-kp 19 }
/** * { id-kp 19 } */
public static final KeyPurposeId id_kp_capwapWTP = new KeyPurposeId(id_kp + ".19"); // // microsoft key purpose ids //
{ 1 3 6 1 4 1 311 20 2 2 }
/** * { 1 3 6 1 4 1 311 20 2 2 } */
public static final KeyPurposeId id_kp_smartcardlogon = new KeyPurposeId("1.3.6.1.4.1.311.20.2.2"); }