Package org.bouncycastle.asn1.x509
Class KeyPurposeId
java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.KeyPurposeId
- All Implemented Interfaces:
ASN1Encodable
public class KeyPurposeId extends ASN1Object
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}
To create a new KeyPurposeId where none of the below suit, use
ASN1ObjectIdentifier newKeyPurposeIdOID = new ASN1ObjectIdentifier("1.3.6.1...");
KeyPurposeId newKeyPurposeId = KeyPurposeId.getInstance(newKeyPurposeIdOID);
-
Field Summary
Fields Modifier and Type Field Description static KeyPurposeIdanyExtendedKeyUsage{ 2 5 29 37 0 }static KeyPurposeIdid_kp_capwapAC{ id-kp 18 }static KeyPurposeIdid_kp_capwapWTP{ id-kp 19 }static KeyPurposeIdid_kp_clientAuth{ id-kp 2 }static KeyPurposeIdid_kp_codeSigning{ id-kp 3 }static KeyPurposeIdid_kp_dvcs{ id-kp 10 }static KeyPurposeIdid_kp_eapOverLAN{ id-kp 14 }static KeyPurposeIdid_kp_eapOverPPP{ id-kp 13 }static KeyPurposeIdid_kp_emailProtection{ id-kp 4 }static KeyPurposeIdid_kp_ipsecEndSystemUsage deprecated by RFC4945 - was { id-kp 5 }static KeyPurposeIdid_kp_ipsecIKE{ id-kp 17 }static KeyPurposeIdid_kp_ipsecTunnelUsage deprecated by RFC4945 - was { id-kp 6 }static KeyPurposeIdid_kp_ipsecUserUsage deprecated by RFC4945 - was { idkp 7 }static KeyPurposeIdid_kp_OCSPSigning{ id-kp 9 }static KeyPurposeIdid_kp_sbgpCertAAServerAuth{ id-kp 11 }static KeyPurposeIdid_kp_scvp_responder{ id-kp 12 }static KeyPurposeIdid_kp_scvpClient{ id-kp 16 }static KeyPurposeIdid_kp_scvpServer{ id-kp 15 }static KeyPurposeIdid_kp_serverAuth{ id-kp 1 }static KeyPurposeIdid_kp_smartcardlogon{ 1 3 6 1 4 1 311 20 2 2 }static KeyPurposeIdid_kp_timeStamping{ id-kp 8 } -
Constructor Summary
Constructors Constructor Description KeyPurposeId(String id)Deprecated.use getInstance and an OID or one of the constants above. -
Method Summary
Modifier and Type Method Description StringgetId()static KeyPurposeIdgetInstance(Object o)ASN1PrimitivetoASN1Primitive()Methods inherited from class org.bouncycastle.asn1.ASN1Object
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
-
Field Details
-
anyExtendedKeyUsage
{ 2 5 29 37 0 } -
id_kp_serverAuth
{ id-kp 1 } -
id_kp_clientAuth
{ id-kp 2 } -
id_kp_codeSigning
{ id-kp 3 } -
id_kp_emailProtection
{ id-kp 4 } -
id_kp_ipsecEndSystem
Usage deprecated by RFC4945 - was { id-kp 5 } -
id_kp_ipsecTunnel
Usage deprecated by RFC4945 - was { id-kp 6 } -
id_kp_ipsecUser
Usage deprecated by RFC4945 - was { idkp 7 } -
id_kp_timeStamping
{ id-kp 8 } -
id_kp_OCSPSigning
{ id-kp 9 } -
id_kp_dvcs
{ id-kp 10 } -
id_kp_sbgpCertAAServerAuth
{ id-kp 11 } -
id_kp_scvp_responder
{ id-kp 12 } -
id_kp_eapOverPPP
{ id-kp 13 } -
id_kp_eapOverLAN
{ id-kp 14 } -
id_kp_scvpServer
{ id-kp 15 } -
id_kp_scvpClient
{ id-kp 16 } -
id_kp_ipsecIKE
{ id-kp 17 } -
id_kp_capwapAC
{ id-kp 18 } -
id_kp_capwapWTP
{ id-kp 19 } -
id_kp_smartcardlogon
{ 1 3 6 1 4 1 311 20 2 2 }
-
-
Constructor Details
-
KeyPurposeId
Deprecated.use getInstance and an OID or one of the constants above.- Parameters:
id- string representation of an OID.
-
-
Method Details
-
getInstance
-
toASN1Primitive
- Specified by:
toASN1Primitivein interfaceASN1Encodable- Specified by:
toASN1Primitivein classASN1Object
-
getId
-