public class org.bouncycastle.cert.X509ExtensionUtils
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.cert.X509ExtensionUtils
super_class: java.lang.Object
{
private org.bouncycastle.operator.DigestCalculator calculator;
descriptor: Lorg/bouncycastle/operator/DigestCalculator;
flags: (0x0002) ACC_PRIVATE
public void <init>(org.bouncycastle.operator.DigestCalculator);
descriptor: (Lorg/bouncycastle/operator/DigestCalculator;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield org.bouncycastle.cert.X509ExtensionUtils.calculator:Lorg/bouncycastle/operator/DigestCalculator;
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/cert/X509ExtensionUtils;
0 3 1 calculator Lorg/bouncycastle/operator/DigestCalculator;
MethodParameters:
Name Flags
calculator
public org.bouncycastle.asn1.x509.AuthorityKeyIdentifier createAuthorityKeyIdentifier(org.bouncycastle.cert.X509CertificateHolder);
descriptor: (Lorg/bouncycastle/cert/X509CertificateHolder;)Lorg/bouncycastle/asn1/x509/AuthorityKeyIdentifier;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=2
start local 0 start local 1 0: new org.bouncycastle.asn1.x509.GeneralName
dup
aload 1
invokevirtual org.bouncycastle.cert.X509CertificateHolder.getIssuer:()Lorg/bouncycastle/asn1/x500/X500Name;
invokespecial org.bouncycastle.asn1.x509.GeneralName.<init>:(Lorg/bouncycastle/asn1/x500/X500Name;)V
astore 2
start local 2 1: new org.bouncycastle.asn1.x509.AuthorityKeyIdentifier
dup
2: aload 0
aload 1
invokevirtual org.bouncycastle.cert.X509ExtensionUtils.getSubjectKeyIdentifier:(Lorg/bouncycastle/cert/X509CertificateHolder;)[B
new org.bouncycastle.asn1.x509.GeneralNames
dup
aload 2
invokespecial org.bouncycastle.asn1.x509.GeneralNames.<init>:(Lorg/bouncycastle/asn1/x509/GeneralName;)V
aload 1
invokevirtual org.bouncycastle.cert.X509CertificateHolder.getSerialNumber:()Ljava/math/BigInteger;
3: invokespecial org.bouncycastle.asn1.x509.AuthorityKeyIdentifier.<init>:([BLorg/bouncycastle/asn1/x509/GeneralNames;Ljava/math/BigInteger;)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/cert/X509ExtensionUtils;
0 4 1 certHolder Lorg/bouncycastle/cert/X509CertificateHolder;
1 4 2 genName Lorg/bouncycastle/asn1/x509/GeneralName;
MethodParameters:
Name Flags
certHolder
public org.bouncycastle.asn1.x509.AuthorityKeyIdentifier createAuthorityKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo);
descriptor: (Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)Lorg/bouncycastle/asn1/x509/AuthorityKeyIdentifier;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new org.bouncycastle.asn1.x509.AuthorityKeyIdentifier
dup
aload 0
aload 1
invokevirtual org.bouncycastle.cert.X509ExtensionUtils.calculateIdentifier:(Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)[B
invokespecial org.bouncycastle.asn1.x509.AuthorityKeyIdentifier.<init>:([B)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cert/X509ExtensionUtils;
0 1 1 publicKeyInfo Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
MethodParameters:
Name Flags
publicKeyInfo
public org.bouncycastle.asn1.x509.AuthorityKeyIdentifier createAuthorityKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo, org.bouncycastle.asn1.x509.GeneralNames, java.math.BigInteger);
descriptor: (Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;Lorg/bouncycastle/asn1/x509/GeneralNames;Ljava/math/BigInteger;)Lorg/bouncycastle/asn1/x509/AuthorityKeyIdentifier;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new org.bouncycastle.asn1.x509.AuthorityKeyIdentifier
dup
aload 0
aload 1
invokevirtual org.bouncycastle.cert.X509ExtensionUtils.calculateIdentifier:(Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)[B
aload 2
aload 3
invokespecial org.bouncycastle.asn1.x509.AuthorityKeyIdentifier.<init>:([BLorg/bouncycastle/asn1/x509/GeneralNames;Ljava/math/BigInteger;)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cert/X509ExtensionUtils;
0 1 1 publicKeyInfo Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
0 1 2 generalNames Lorg/bouncycastle/asn1/x509/GeneralNames;
0 1 3 serial Ljava/math/BigInteger;
MethodParameters:
Name Flags
publicKeyInfo
generalNames
serial
public org.bouncycastle.asn1.x509.SubjectKeyIdentifier createSubjectKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo);
descriptor: (Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)Lorg/bouncycastle/asn1/x509/SubjectKeyIdentifier;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: new org.bouncycastle.asn1.x509.SubjectKeyIdentifier
dup
aload 0
aload 1
invokevirtual org.bouncycastle.cert.X509ExtensionUtils.calculateIdentifier:(Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)[B
invokespecial org.bouncycastle.asn1.x509.SubjectKeyIdentifier.<init>:([B)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cert/X509ExtensionUtils;
0 1 1 publicKeyInfo Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
MethodParameters:
Name Flags
publicKeyInfo
public org.bouncycastle.asn1.x509.SubjectKeyIdentifier createTruncatedSubjectKeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo);
descriptor: (Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)Lorg/bouncycastle/asn1/x509/SubjectKeyIdentifier;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.bouncycastle.cert.X509ExtensionUtils.calculateIdentifier:(Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)[B
astore 2
start local 2 1: bipush 8
newarray 8
astore 3
start local 3 2: aload 2
aload 2
arraylength
bipush 8
isub
aload 3
iconst_0
aload 3
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 3
iconst_0
dup2
baload
bipush 15
iand
i2b
bastore
4: aload 3
iconst_0
dup2
baload
bipush 64
ior
i2b
bastore
5: new org.bouncycastle.asn1.x509.SubjectKeyIdentifier
dup
aload 3
invokespecial org.bouncycastle.asn1.x509.SubjectKeyIdentifier.<init>:([B)V
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/cert/X509ExtensionUtils;
0 6 1 publicKeyInfo Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
1 6 2 digest [B
2 6 3 id [B
MethodParameters:
Name Flags
publicKeyInfo
private byte[] getSubjectKeyIdentifier(org.bouncycastle.cert.X509CertificateHolder);
descriptor: (Lorg/bouncycastle/cert/X509CertificateHolder;)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.bouncycastle.cert.X509CertificateHolder.getVersionNumber:()I
iconst_3
if_icmpeq 2
1: aload 0
aload 1
invokevirtual org.bouncycastle.cert.X509CertificateHolder.getSubjectPublicKeyInfo:()Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
invokevirtual org.bouncycastle.cert.X509ExtensionUtils.calculateIdentifier:(Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)[B
areturn
2: StackMap locals:
StackMap stack:
aload 1
getstatic org.bouncycastle.asn1.x509.Extension.subjectKeyIdentifier:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.cert.X509CertificateHolder.getExtension:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)Lorg/bouncycastle/asn1/x509/Extension;
astore 2
start local 2 3: aload 2
ifnull 5
4: aload 2
invokevirtual org.bouncycastle.asn1.x509.Extension.getParsedValue:()Lorg/bouncycastle/asn1/ASN1Encodable;
invokestatic org.bouncycastle.asn1.ASN1OctetString.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/ASN1OctetString;
invokevirtual org.bouncycastle.asn1.ASN1OctetString.getOctets:()[B
areturn
5: StackMap locals: org.bouncycastle.asn1.x509.Extension
StackMap stack:
aload 0
aload 1
invokevirtual org.bouncycastle.cert.X509CertificateHolder.getSubjectPublicKeyInfo:()Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
invokevirtual org.bouncycastle.cert.X509ExtensionUtils.calculateIdentifier:(Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)[B
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/cert/X509ExtensionUtils;
0 6 1 certHolder Lorg/bouncycastle/cert/X509CertificateHolder;
3 6 2 ext Lorg/bouncycastle/asn1/x509/Extension;
MethodParameters:
Name Flags
certHolder
private byte[] calculateIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo);
descriptor: (Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)[B
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getPublicKeyData:()Lorg/bouncycastle/asn1/DERBitString;
invokevirtual org.bouncycastle.asn1.DERBitString.getBytes:()[B
astore 2
start local 2 1: aload 0
getfield org.bouncycastle.cert.X509ExtensionUtils.calculator:Lorg/bouncycastle/operator/DigestCalculator;
invokeinterface org.bouncycastle.operator.DigestCalculator.getOutputStream:()Ljava/io/OutputStream;
astore 3
start local 3 2: aload 3
aload 2
invokevirtual java.io.OutputStream.write:([B)V
3: aload 3
invokevirtual java.io.OutputStream.close:()V
4: goto 7
5: StackMap locals: org.bouncycastle.cert.X509ExtensionUtils org.bouncycastle.asn1.x509.SubjectPublicKeyInfo byte[] java.io.OutputStream
StackMap stack: java.io.IOException
astore 4
start local 4 6: new org.bouncycastle.cert.CertRuntimeException
dup
new java.lang.StringBuilder
dup
ldc "unable to calculate identifier: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokespecial org.bouncycastle.cert.CertRuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 7: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.cert.X509ExtensionUtils.calculator:Lorg/bouncycastle/operator/DigestCalculator;
invokeinterface org.bouncycastle.operator.DigestCalculator.getDigest:()[B
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/bouncycastle/cert/X509ExtensionUtils;
0 8 1 publicKeyInfo Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
1 8 2 bytes [B
2 8 3 cOut Ljava/io/OutputStream;
6 7 4 e Ljava/io/IOException;
Exception table:
from to target type
2 4 5 Class java.io.IOException
MethodParameters:
Name Flags
publicKeyInfo
}
SourceFile: "X509ExtensionUtils.java"