|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.bouncycastle.asn1.ASN1Object
org.bouncycastle.asn1.x509.ExtendedKeyUsage
The extendedKeyUsage object. extendedKeyUsage ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
Constructor Summary | |
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. |
Method Summary | |
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. |
Methods inherited from class org.bouncycastle.asn1.ASN1Object |
encodeTo, encodeTo, equals, getEncoded, getEncoded, hasEncodedTagValue, hashCode |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ExtendedKeyUsage(KeyPurposeId usage)
usage
- the keyPurposeId to be included.public ExtendedKeyUsage(KeyPurposeId[] usages)
usages
- an array of KeyPurposeIds.public ExtendedKeyUsage(java.util.Vector usages)
Method Detail |
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 ASN1Encodable
toASN1Primitive
in class ASN1Object
|
Bouncy Castle Cryptography Library 1.81 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |