public class KeyPurposeId extends ASN1Object
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);
| Modifier | Constructor and Description |
|---|---|
private |
KeyPurposeId(ASN1ObjectIdentifier id) |
|
KeyPurposeId(java.lang.String id)
Deprecated.
use getInstance and an OID or one of the constants above.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getId() |
static KeyPurposeId |
getInstance(java.lang.Object o) |
ASN1Primitive |
toASN1Primitive()
Method providing a primitive representation of this object suitable for encoding.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Objectprivate static final ASN1ObjectIdentifier id_kp
public static final KeyPurposeId anyExtendedKeyUsage
public static final KeyPurposeId id_kp_serverAuth
public static final KeyPurposeId id_kp_clientAuth
public static final KeyPurposeId id_kp_codeSigning
public static final KeyPurposeId id_kp_emailProtection
public static final KeyPurposeId id_kp_ipsecEndSystem
public static final KeyPurposeId id_kp_ipsecTunnel
public static final KeyPurposeId id_kp_ipsecUser
public static final KeyPurposeId id_kp_timeStamping
public static final KeyPurposeId id_kp_OCSPSigning
public static final KeyPurposeId id_kp_dvcs
public static final KeyPurposeId id_kp_sbgpCertAAServerAuth
public static final KeyPurposeId id_kp_scvp_responder
public static final KeyPurposeId id_kp_eapOverPPP
public static final KeyPurposeId id_kp_eapOverLAN
public static final KeyPurposeId id_kp_scvpServer
public static final KeyPurposeId id_kp_scvpClient
public static final KeyPurposeId id_kp_ipsecIKE
public static final KeyPurposeId id_kp_capwapAC
public static final KeyPurposeId id_kp_capwapWTP
public static final KeyPurposeId id_kp_smartcardlogon
private ASN1ObjectIdentifier id
private KeyPurposeId(ASN1ObjectIdentifier id)
public KeyPurposeId(java.lang.String id)
id - string representation of an OID.public static KeyPurposeId getInstance(java.lang.Object o)
public ASN1Primitive toASN1Primitive()
ASN1ObjecttoASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Objectpublic java.lang.String getId()