public class ExtendedKeyUsage extends ASN1Object
extendedKeyUsage ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
Constructor and Description |
---|
ExtendedKeyUsage(KeyPurposeId usage) |
ExtendedKeyUsage(KeyPurposeId[] usages) |
ExtendedKeyUsage(java.util.Vector usages)
Deprecated.
use KeyPurposeId[] constructor.
|
Modifier and Type | Method and Description |
---|---|
static ExtendedKeyUsage |
fromExtensions(Extensions extensions) |
static ExtendedKeyUsage |
getInstance(ASN1TaggedObject obj,
boolean explicit) |
static ExtendedKeyUsage |
getInstance(java.lang.Object obj) |
KeyPurposeId[] |
getUsages()
Returns all extended key usages.
|
boolean |
hasKeyPurposeId(KeyPurposeId keyPurposeId) |
int |
size() |
ASN1Primitive |
toASN1Primitive() |
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Object
public ExtendedKeyUsage(KeyPurposeId usage)
public ExtendedKeyUsage(KeyPurposeId[] usages)
public ExtendedKeyUsage(java.util.Vector usages)
public static ExtendedKeyUsage getInstance(ASN1TaggedObject obj, boolean explicit)
public static ExtendedKeyUsage getInstance(java.lang.Object obj)
public static ExtendedKeyUsage fromExtensions(Extensions extensions)
public boolean hasKeyPurposeId(KeyPurposeId keyPurposeId)
public KeyPurposeId[] getUsages()
public int size()
public ASN1Primitive toASN1Primitive()
toASN1Primitive
in interface ASN1Encodable
toASN1Primitive
in class ASN1Object