public class org.bouncycastle.ocsp.CertificateID
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.ocsp.CertificateID
super_class: java.lang.Object
{
public static final java.lang.String HASH_SHA1;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "1.3.14.3.2.26"
private final org.bouncycastle.asn1.ocsp.CertID id;
descriptor: Lorg/bouncycastle/asn1/ocsp/CertID;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
public void <init>(org.bouncycastle.asn1.ocsp.CertID);
descriptor: (Lorg/bouncycastle/asn1/ocsp/CertID;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 1
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "'id' cannot be null"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.bouncycastle.ocsp.CertificateID org.bouncycastle.asn1.ocsp.CertID
StackMap stack:
aload 0
aload 1
putfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/ocsp/CertificateID;
0 5 1 id Lorg/bouncycastle/asn1/ocsp/CertID;
MethodParameters:
Name Flags
id
public void <init>(java.lang.String, java.security.cert.X509Certificate, java.math.BigInteger, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;Ljava/math/BigInteger;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: new org.bouncycastle.asn1.x509.AlgorithmIdentifier
dup
2: new org.bouncycastle.asn1.DERObjectIdentifier
dup
aload 1
invokespecial org.bouncycastle.asn1.DERObjectIdentifier.<init>:(Ljava/lang/String;)V
getstatic org.bouncycastle.asn1.DERNull.INSTANCE:Lorg/bouncycastle/asn1/DERNull;
3: invokespecial org.bouncycastle.asn1.x509.AlgorithmIdentifier.<init>:(Lorg/bouncycastle/asn1/DERObjectIdentifier;Lorg/bouncycastle/asn1/DEREncodable;)V
astore 5
start local 5 4: aload 0
aload 5
aload 2
new org.bouncycastle.asn1.DERInteger
dup
aload 3
invokespecial org.bouncycastle.asn1.DERInteger.<init>:(Ljava/math/BigInteger;)V
aload 4
invokestatic org.bouncycastle.ocsp.CertificateID.createCertID:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Ljava/security/cert/X509Certificate;Lorg/bouncycastle/asn1/DERInteger;Ljava/lang/String;)Lorg/bouncycastle/asn1/ocsp/CertID;
putfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
5: return
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/bouncycastle/ocsp/CertificateID;
0 6 1 hashAlgorithm Ljava/lang/String;
0 6 2 issuerCert Ljava/security/cert/X509Certificate;
0 6 3 number Ljava/math/BigInteger;
0 6 4 provider Ljava/lang/String;
4 6 5 hashAlg Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
Exceptions:
throws org.bouncycastle.ocsp.OCSPException
MethodParameters:
Name Flags
hashAlgorithm
issuerCert
number
provider
public void <init>(java.lang.String, java.security.cert.X509Certificate, java.math.BigInteger);
descriptor: (Ljava/lang/String;Ljava/security/cert/X509Certificate;Ljava/math/BigInteger;)V
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: aload 0
aload 1
aload 2
aload 3
ldc "BC"
invokespecial org.bouncycastle.ocsp.CertificateID.<init>:(Ljava/lang/String;Ljava/security/cert/X509Certificate;Ljava/math/BigInteger;Ljava/lang/String;)V
1: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/ocsp/CertificateID;
0 2 1 hashAlgorithm Ljava/lang/String;
0 2 2 issuerCert Ljava/security/cert/X509Certificate;
0 2 3 number Ljava/math/BigInteger;
Exceptions:
throws org.bouncycastle.ocsp.OCSPException
MethodParameters:
Name Flags
hashAlgorithm
issuerCert
number
public java.lang.String getHashAlgOID();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getHashAlgorithm:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokevirtual org.bouncycastle.asn1.x509.AlgorithmIdentifier.getObjectId:()Lorg/bouncycastle/asn1/DERObjectIdentifier;
invokevirtual org.bouncycastle.asn1.DERObjectIdentifier.getId:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/ocsp/CertificateID;
public byte[] getIssuerNameHash();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getIssuerNameHash:()Lorg/bouncycastle/asn1/ASN1OctetString;
invokevirtual org.bouncycastle.asn1.ASN1OctetString.getOctets:()[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/ocsp/CertificateID;
public byte[] getIssuerKeyHash();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getIssuerKeyHash:()Lorg/bouncycastle/asn1/ASN1OctetString;
invokevirtual org.bouncycastle.asn1.ASN1OctetString.getOctets:()[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/ocsp/CertificateID;
public java.math.BigInteger getSerialNumber();
descriptor: ()Ljava/math/BigInteger;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getSerialNumber:()Lorg/bouncycastle/asn1/DERInteger;
invokevirtual org.bouncycastle.asn1.DERInteger.getValue:()Ljava/math/BigInteger;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/ocsp/CertificateID;
public boolean matchesIssuer(java.security.cert.X509Certificate, java.lang.String);
descriptor: (Ljava/security/cert/X509Certificate;Ljava/lang/String;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getHashAlgorithm:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
aload 1
aload 0
getfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getSerialNumber:()Lorg/bouncycastle/asn1/DERInteger;
aload 2
invokestatic org.bouncycastle.ocsp.CertificateID.createCertID:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Ljava/security/cert/X509Certificate;Lorg/bouncycastle/asn1/DERInteger;Ljava/lang/String;)Lorg/bouncycastle/asn1/ocsp/CertID;
1: aload 0
getfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.equals:(Ljava/lang/Object;)Z
2: ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/ocsp/CertificateID;
0 3 1 issuerCert Ljava/security/cert/X509Certificate;
0 3 2 provider Ljava/lang/String;
Exceptions:
throws org.bouncycastle.ocsp.OCSPException
MethodParameters:
Name Flags
issuerCert
provider
public org.bouncycastle.asn1.ocsp.CertID toASN1Object();
descriptor: ()Lorg/bouncycastle/asn1/ocsp/CertID;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/ocsp/CertificateID;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 1
instanceof org.bouncycastle.ocsp.CertificateID
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
checkcast org.bouncycastle.ocsp.CertificateID
astore 2
start local 2 3: aload 0
getfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getDERObject:()Lorg/bouncycastle/asn1/DERObject;
aload 2
getfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getDERObject:()Lorg/bouncycastle/asn1/DERObject;
invokevirtual org.bouncycastle.asn1.DERObject.equals:(Ljava/lang/Object;)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/ocsp/CertificateID;
0 4 1 o Ljava/lang/Object;
3 4 2 obj Lorg/bouncycastle/ocsp/CertificateID;
MethodParameters:
Name Flags
o
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getDERObject:()Lorg/bouncycastle/asn1/DERObject;
invokevirtual org.bouncycastle.asn1.DERObject.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/ocsp/CertificateID;
public static org.bouncycastle.ocsp.CertificateID deriveCertificateID(org.bouncycastle.ocsp.CertificateID, java.math.BigInteger);
descriptor: (Lorg/bouncycastle/ocsp/CertificateID;Ljava/math/BigInteger;)Lorg/bouncycastle/ocsp/CertificateID;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=10, locals=2, args_size=2
start local 0 start local 1 0: new org.bouncycastle.ocsp.CertificateID
dup
new org.bouncycastle.asn1.ocsp.CertID
dup
aload 0
getfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getHashAlgorithm:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
aload 0
getfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getIssuerNameHash:()Lorg/bouncycastle/asn1/ASN1OctetString;
aload 0
getfield org.bouncycastle.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getIssuerKeyHash:()Lorg/bouncycastle/asn1/ASN1OctetString;
new org.bouncycastle.asn1.DERInteger
dup
aload 1
invokespecial org.bouncycastle.asn1.DERInteger.<init>:(Ljava/math/BigInteger;)V
invokespecial org.bouncycastle.asn1.ocsp.CertID.<init>:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Lorg/bouncycastle/asn1/ASN1OctetString;Lorg/bouncycastle/asn1/ASN1OctetString;Lorg/bouncycastle/asn1/DERInteger;)V
invokespecial org.bouncycastle.ocsp.CertificateID.<init>:(Lorg/bouncycastle/asn1/ocsp/CertID;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 original Lorg/bouncycastle/ocsp/CertificateID;
0 1 1 newSerialNumber Ljava/math/BigInteger;
MethodParameters:
Name Flags
original
newSerialNumber
private static org.bouncycastle.asn1.ocsp.CertID createCertID(org.bouncycastle.asn1.x509.AlgorithmIdentifier, java.security.cert.X509Certificate, org.bouncycastle.asn1.DERInteger, java.lang.String);
descriptor: (Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Ljava/security/cert/X509Certificate;Lorg/bouncycastle/asn1/DERInteger;Ljava/lang/String;)Lorg/bouncycastle/asn1/ocsp/CertID;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=11, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokevirtual org.bouncycastle.asn1.x509.AlgorithmIdentifier.getAlgorithm:()Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.getId:()Ljava/lang/String;
1: aload 3
2: invokestatic org.bouncycastle.ocsp.OCSPUtil.createDigestInstance:(Ljava/lang/String;Ljava/lang/String;)Ljava/security/MessageDigest;
astore 4
start local 4 3: aload 1
invokestatic org.bouncycastle.jce.PrincipalUtil.getSubjectX509Principal:(Ljava/security/cert/X509Certificate;)Lorg/bouncycastle/jce/X509Principal;
astore 5
start local 5 4: aload 4
aload 5
invokevirtual org.bouncycastle.jce.X509Principal.getEncoded:()[B
invokevirtual java.security.MessageDigest.update:([B)V
5: new org.bouncycastle.asn1.DEROctetString
dup
aload 4
invokevirtual java.security.MessageDigest.digest:()[B
invokespecial org.bouncycastle.asn1.DEROctetString.<init>:([B)V
astore 6
start local 6 6: aload 1
invokevirtual java.security.cert.X509Certificate.getPublicKey:()Ljava/security/PublicKey;
astore 7
start local 7 7: new org.bouncycastle.asn1.ASN1InputStream
dup
aload 7
invokeinterface java.security.PublicKey.getEncoded:()[B
invokespecial org.bouncycastle.asn1.ASN1InputStream.<init>:([B)V
astore 8
start local 8 8: aload 8
invokevirtual org.bouncycastle.asn1.ASN1InputStream.readObject:()Lorg/bouncycastle/asn1/DERObject;
invokestatic org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
astore 9
start local 9 9: aload 4
aload 9
invokevirtual org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getPublicKeyData:()Lorg/bouncycastle/asn1/DERBitString;
invokevirtual org.bouncycastle.asn1.DERBitString.getBytes:()[B
invokevirtual java.security.MessageDigest.update:([B)V
10: new org.bouncycastle.asn1.DEROctetString
dup
aload 4
invokevirtual java.security.MessageDigest.digest:()[B
invokespecial org.bouncycastle.asn1.DEROctetString.<init>:([B)V
astore 10
start local 10 11: new org.bouncycastle.asn1.ocsp.CertID
dup
aload 0
aload 6
aload 10
aload 2
invokespecial org.bouncycastle.asn1.ocsp.CertID.<init>:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;Lorg/bouncycastle/asn1/ASN1OctetString;Lorg/bouncycastle/asn1/ASN1OctetString;Lorg/bouncycastle/asn1/DERInteger;)V
12: areturn
end local 10 end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 13: StackMap locals:
StackMap stack: java.lang.Exception
astore 4
start local 4 14: new org.bouncycastle.ocsp.OCSPException
dup
new java.lang.StringBuilder
dup
ldc "problem creating ID: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 4
invokespecial org.bouncycastle.ocsp.OCSPException.<init>:(Ljava/lang/String;Ljava/lang/Exception;)V
athrow
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 hashAlg Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
0 15 1 issuerCert Ljava/security/cert/X509Certificate;
0 15 2 serialNumber Lorg/bouncycastle/asn1/DERInteger;
0 15 3 provider Ljava/lang/String;
3 13 4 digest Ljava/security/MessageDigest;
4 13 5 issuerName Lorg/bouncycastle/jce/X509Principal;
6 13 6 issuerNameHash Lorg/bouncycastle/asn1/ASN1OctetString;
7 13 7 issuerKey Ljava/security/PublicKey;
8 13 8 aIn Lorg/bouncycastle/asn1/ASN1InputStream;
9 13 9 info Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
11 13 10 issuerKeyHash Lorg/bouncycastle/asn1/ASN1OctetString;
14 15 4 e Ljava/lang/Exception;
Exception table:
from to target type
0 12 13 Class java.lang.Exception
Exceptions:
throws org.bouncycastle.ocsp.OCSPException
MethodParameters:
Name Flags
hashAlg
issuerCert
serialNumber
provider
}
SourceFile: "CertificateID.java"