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);