public class ExtendedKeyUsage extends ASN1Object
extendedKeyUsage ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
| Modifier and Type | Field and Description |
|---|---|
(package private) ASN1Sequence |
seq |
(package private) java.util.Hashtable |
usageTable |
| Modifier | Constructor and Description |
|---|---|
private |
ExtendedKeyUsage(ASN1Sequence seq) |
|
ExtendedKeyUsage(KeyPurposeId usage)
Base constructor, from a single KeyPurposeId.
|
|
ExtendedKeyUsage(KeyPurposeId[] usages)
Base constructor, from multiple KeyPurposeIds.
|
|
ExtendedKeyUsage(java.util.Vector usages)
Deprecated.
use KeyPurposeId[] constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static ExtendedKeyUsage |
fromExtensions(Extensions extensions)
Retrieve an ExtendedKeyUsage for a passed in Extensions object, if present.
|
static ExtendedKeyUsage |
getInstance(ASN1TaggedObject obj,
boolean explicit)
Return an ExtendedKeyUsage from the passed in tagged object.
|
static ExtendedKeyUsage |
getInstance(java.lang.Object obj)
Return an ExtendedKeyUsage from the passed in object.
|
KeyPurposeId[] |
getUsages()
Returns all extended key usages.
|
boolean |
hasKeyPurposeId(KeyPurposeId keyPurposeId)
Return true if this ExtendedKeyUsage object contains the passed in keyPurposeId.
|
int |
size()
Return the number of KeyPurposeIds present in this ExtendedKeyUsage.
|
ASN1Primitive |
toASN1Primitive()
Return the ASN.1 primitive form of this object.
|
equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode, toASN1Objectjava.util.Hashtable usageTable
ASN1Sequence seq
public ExtendedKeyUsage(KeyPurposeId usage)
usage - the keyPurposeId to be included.private ExtendedKeyUsage(ASN1Sequence seq)
public ExtendedKeyUsage(KeyPurposeId[] usages)
usages - an array of KeyPurposeIds.public ExtendedKeyUsage(java.util.Vector usages)
public static ExtendedKeyUsage getInstance(ASN1TaggedObject obj, boolean explicit)
obj - the tagged object containing the ExtendedKeyUsageexplicit - true if the tagged object should be interpreted as explicitly tagged, false if implicit.public static ExtendedKeyUsage getInstance(java.lang.Object obj)
obj - an ExtendedKeyUsage, some form or encoding of one, or null.public static ExtendedKeyUsage fromExtensions(Extensions extensions)
extensions - the extensions object to be examined.public boolean hasKeyPurposeId(KeyPurposeId keyPurposeId)
keyPurposeId - the KeyPurposeId of interest.public KeyPurposeId[] getUsages()
public int size()
public ASN1Primitive toASN1Primitive()
toASN1Primitive in interface ASN1EncodabletoASN1Primitive in class ASN1Object