extendedKeyUsage ::= SEQUENCE SIZE (1..MAX) OF KeyPurposeId
this.seq = seq; Enumeration e = seq.getObjects(); while (e.hasMoreElements()) { Object o = e.nextElement(); this.usageTable.put(o, o); }
ASN1EncodableVector v = new ASN1EncodableVector(); Enumeration e = usages.elements(); while (e.hasMoreElements()) { DERObject o = (DERObject)e.nextElement(); v.add(o); this.usageTable.put(o, o); } this.seq = new DERSequence(v);
return seq;
return getInstance(ASN1Sequence.getInstance(obj, explicit));
if(obj == null || obj instanceof ExtendedKeyUsage) { return (ExtendedKeyUsage)obj; } if(obj instanceof ASN1Sequence) { return new ExtendedKeyUsage((ASN1Sequence)obj); } throw new IllegalArgumentException("Invalid ExtendedKeyUsage: " + obj.getClass().getName());
return (usageTable.get(keyPurposeId) != null);