public class org.bouncycastle.x509.extension.X509ExtensionUtil
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.x509.extension.X509ExtensionUtil
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/x509/extension/X509ExtensionUtil;
public static org.bouncycastle.asn1.ASN1Object fromExtensionValue(byte[]);
descriptor: ([B)Lorg/bouncycastle/asn1/ASN1Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=2, args_size=1
start local 0 0: aload 0
invokestatic org.bouncycastle.asn1.ASN1Object.fromByteArray:([B)Lorg/bouncycastle/asn1/ASN1Object;
checkcast org.bouncycastle.asn1.ASN1OctetString
astore 1
start local 1 1: aload 1
invokevirtual org.bouncycastle.asn1.ASN1OctetString.getOctets:()[B
invokestatic org.bouncycastle.asn1.ASN1Object.fromByteArray:([B)Lorg/bouncycastle/asn1/ASN1Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 encodedValue [B
1 2 1 octs Lorg/bouncycastle/asn1/ASN1OctetString;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
encodedValue
public static java.util.Collection getIssuerAlternativeNames(java.security.cert.X509Certificate);
descriptor: (Ljava/security/cert/X509Certificate;)Ljava/util/Collection;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getstatic org.bouncycastle.asn1.x509.X509Extensions.IssuerAlternativeName:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.getId:()Ljava/lang/String;
invokevirtual java.security.cert.X509Certificate.getExtensionValue:(Ljava/lang/String;)[B
astore 1
start local 1 1: aload 1
invokestatic org.bouncycastle.x509.extension.X509ExtensionUtil.getAlternativeNames:([B)Ljava/util/Collection;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 cert Ljava/security/cert/X509Certificate;
1 2 1 extVal [B
Exceptions:
throws java.security.cert.CertificateParsingException
MethodParameters:
Name Flags
cert
public static java.util.Collection getSubjectAlternativeNames(java.security.cert.X509Certificate);
descriptor: (Ljava/security/cert/X509Certificate;)Ljava/util/Collection;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getstatic org.bouncycastle.asn1.x509.X509Extensions.SubjectAlternativeName:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.getId:()Ljava/lang/String;
invokevirtual java.security.cert.X509Certificate.getExtensionValue:(Ljava/lang/String;)[B
astore 1
start local 1 1: aload 1
invokestatic org.bouncycastle.x509.extension.X509ExtensionUtil.getAlternativeNames:([B)Ljava/util/Collection;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 cert Ljava/security/cert/X509Certificate;
1 2 1 extVal [B
Exceptions:
throws java.security.cert.CertificateParsingException
MethodParameters:
Name Flags
cert
private static java.util.Collection getAlternativeNames(byte[]);
descriptor: ([B)Ljava/util/Collection;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: getstatic java.util.Collections.EMPTY_LIST:Ljava/util/List;
areturn
2: StackMap locals:
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 1
start local 1 3: aload 0
invokestatic org.bouncycastle.x509.extension.X509ExtensionUtil.fromExtensionValue:([B)Lorg/bouncycastle/asn1/ASN1Object;
invokestatic org.bouncycastle.asn1.DERSequence.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1Sequence;
invokevirtual org.bouncycastle.asn1.ASN1Sequence.getObjects:()Ljava/util/Enumeration;
astore 2
start local 2 4: goto 21
5: StackMap locals: java.util.Collection java.util.Enumeration
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.nextElement:()Ljava/lang/Object;
invokestatic org.bouncycastle.asn1.x509.GeneralName.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/x509/GeneralName;
astore 3
start local 3 6: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 4
start local 4 7: aload 4
new java.lang.Integer
dup
aload 3
invokevirtual org.bouncycastle.asn1.x509.GeneralName.getTagNo:()I
invokespecial java.lang.Integer.<init>:(I)V
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
8: aload 3
invokevirtual org.bouncycastle.asn1.x509.GeneralName.getTagNo:()I
tableswitch { // 0 - 8
0: 9
1: 13
2: 13
3: 9
4: 11
5: 9
6: 13
7: 17
8: 15
default: 19
}
9: StackMap locals: org.bouncycastle.asn1.x509.GeneralName java.util.List
StackMap stack:
aload 4
aload 3
invokevirtual org.bouncycastle.asn1.x509.GeneralName.getName:()Lorg/bouncycastle/asn1/DEREncodable;
invokeinterface org.bouncycastle.asn1.DEREncodable.getDERObject:()Lorg/bouncycastle/asn1/DERObject;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
10: goto 20
11: StackMap locals:
StackMap stack:
aload 4
aload 3
invokevirtual org.bouncycastle.asn1.x509.GeneralName.getName:()Lorg/bouncycastle/asn1/DEREncodable;
invokestatic org.bouncycastle.asn1.x509.X509Name.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/x509/X509Name;
invokevirtual org.bouncycastle.asn1.x509.X509Name.toString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
12: goto 20
13: StackMap locals:
StackMap stack:
aload 4
aload 3
invokevirtual org.bouncycastle.asn1.x509.GeneralName.getName:()Lorg/bouncycastle/asn1/DEREncodable;
checkcast org.bouncycastle.asn1.ASN1String
invokeinterface org.bouncycastle.asn1.ASN1String.getString:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
14: goto 20
15: StackMap locals:
StackMap stack:
aload 4
aload 3
invokevirtual org.bouncycastle.asn1.x509.GeneralName.getName:()Lorg/bouncycastle/asn1/DEREncodable;
invokestatic org.bouncycastle.asn1.DERObjectIdentifier.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/DERObjectIdentifier;
invokevirtual org.bouncycastle.asn1.DERObjectIdentifier.getId:()Ljava/lang/String;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
16: goto 20
17: StackMap locals:
StackMap stack:
aload 4
aload 3
invokevirtual org.bouncycastle.asn1.x509.GeneralName.getName:()Lorg/bouncycastle/asn1/DEREncodable;
invokestatic org.bouncycastle.asn1.DEROctetString.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1OctetString;
invokevirtual org.bouncycastle.asn1.ASN1OctetString.getOctets:()[B
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
18: goto 20
19: StackMap locals:
StackMap stack:
new java.io.IOException
dup
new java.lang.StringBuilder
dup
ldc "Bad tag number: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual org.bouncycastle.asn1.x509.GeneralName.getTagNo:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.IOException.<init>:(Ljava/lang/String;)V
athrow
20: StackMap locals:
StackMap stack:
aload 1
aload 4
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 4 end local 3 21: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Enumeration.hasMoreElements:()Z
ifne 5
22: aload 1
invokestatic java.util.Collections.unmodifiableCollection:(Ljava/util/Collection;)Ljava/util/Collection;
23: areturn
end local 2 end local 1 24: StackMap locals: byte[]
StackMap stack: java.lang.Exception
astore 1
start local 1 25: new java.security.cert.CertificateParsingException
dup
aload 1
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
invokespecial java.security.cert.CertificateParsingException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 extVal [B
3 24 1 temp Ljava/util/Collection;
4 24 2 it Ljava/util/Enumeration;
6 21 3 genName Lorg/bouncycastle/asn1/x509/GeneralName;
7 21 4 list Ljava/util/List;
25 26 1 e Ljava/lang/Exception;
Exception table:
from to target type
2 23 24 Class java.lang.Exception
Exceptions:
throws java.security.cert.CertificateParsingException
MethodParameters:
Name Flags
extVal
}
SourceFile: "X509ExtensionUtil.java"