JUMPING CATS! CONTENT SETS!
This commit is contained in:
parent
162640b552
commit
3fe0da753c
1 changed files with 7 additions and 20 deletions
|
@ -3,6 +3,7 @@ package com.hashbangbash.trie;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
import java.util.Enumeration;
|
||||||
|
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.io.DataInputStream;
|
import java.io.DataInputStream;
|
||||||
|
@ -191,6 +192,7 @@ public class App {
|
||||||
bis = new BufferedInputStream(fis);
|
bis = new BufferedInputStream(fis);
|
||||||
|
|
||||||
|
|
||||||
|
try {
|
||||||
cf = CertificateFactory.getInstance("X.509");
|
cf = CertificateFactory.getInstance("X.509");
|
||||||
} catch (CertificateException ex) {
|
} catch (CertificateException ex) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -212,33 +214,18 @@ public class App {
|
||||||
//showTreeFromCSFIle(arg);
|
//showTreeFromCSFIle(arg);
|
||||||
//showTreeFromCSFIle(arg);
|
//showTreeFromCSFIle(arg);
|
||||||
|
|
||||||
//X509Certificate cert = certFromFile(arg);
|
|
||||||
//System.out.println(cert.toString());
|
|
||||||
|
|
||||||
//System.out.println(objectFromCertOid(arg, "1.3.6.1.4.1.2312.9.7").getClass().getName());
|
|
||||||
|
|
||||||
DERObject derObject;
|
|
||||||
DEROctetString dos;
|
DEROctetString dos;
|
||||||
String aki;
|
|
||||||
byte[] bytes;
|
|
||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
|
||||||
List<String> contents;
|
List<String> contents;
|
||||||
|
|
||||||
dos = (DEROctetString)objectFromCertOid(arg, "1.3.6.1.4.1.2312.9.7");
|
dos = (DEROctetString)objectFromCertOid(arg, "1.3.6.1.4.1.2312.9.7");
|
||||||
try {
|
if ((contents = hydrateFromBytes(dos.getOctets())) == null) {
|
||||||
baos.write(dos.getOctets());
|
System.out.println("FAIL");
|
||||||
} catch (IOException ex) {
|
return;
|
||||||
System.out.println(ex);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bytes = decompress(baos.toByteArray());
|
for (String content : contents) {
|
||||||
contents = hydrateFromBytes(bytes);
|
System.out.println(content);
|
||||||
if (contents != null) {
|
|
||||||
for (String content : contents) {
|
|
||||||
System.out.println(content);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue