NetscapeCertType ::= BIT STRING { SSLClient (0), SSLServer (1), S/MIME (2), Object Signing (3), Reserved (4), SSL CA (5), S/MIME CA (6), Object Signing CA (7) }
204205206207208209210211212213214215216
if (c.getSignatureAlgorithm().getParameters() != null) { try { DEROutputStream dOut = new DEROutputStream(bOut); dOut.writeObject(c.getSignatureAlgorithm().getParameters()); } catch (Exception e) { throw new RuntimeException("exception getting sig parameters " + e); }
402403404405406407408409410411412413414415416
X509Extension ext = exts.getExtension(new DERObjectIdentifier(oid)); if (ext != null) { ByteArrayOutputStream bOut = new ByteArrayOutputStream(); DEROutputStream dOut = new DEROutputStream(bOut); try { dOut.writeObject(ext.getValue()); return bOut.toByteArray(); } catch (Exception e) {
511512513514515516517518519520521522523524525
public byte[] getEncoded() throws CertificateException { ByteArrayOutputStream bOut = new ByteArrayOutputStream(); DEROutputStream dOut = new DEROutputStream(bOut); try { dOut.writeObject(c); return bOut.toByteArray(); } catch (IOException e) {
290291292293294295296297298299
v.add(new DERBoolean(true)); } v.add(ext.getValue()); vec.add(new DERSequence(v)); } return new DERSequence(vec); }
134135136137138139140
ASN1EncodableVector v = new ASN1EncodableVector(); v.add(algId); v.add(keyData); return new DERSequence(v); }
102103104105106107108
ASN1EncodableVector v = new ASN1EncodableVector(); v.add(new DERInteger(getModulus())); v.add(new DERInteger(getPublicExponent())); return new DERSequence(v); }
161162163164165166167
{ v.add(pathLenConstraint); } } return new DERSequence(v); }
133134135136137138139
if (parametersDefined) { v.add(parameters); } return new DERSequence(v); }
127128129130131132133134135136137138139
// subjectPublicKeyInfo = SubjectPublicKeyInfo.getInstance(seq.getObjectAt(seqStart + 6)); for (int extras = seq.size() - (seqStart + 6) - 1; extras > 0; extras--) { DERTaggedObject extra = (DERTaggedObject)seq.getObjectAt(seqStart + 6 + extras); switch (extra.getTagNo()) { case 1: issuerUniqueId = DERBitString.getInstance(extra); break; case 2:
7576777879808182
{ time = new DERGeneralizedTime(d); } else { time = new DERUTCTime(d.substring(2)); } }