public class org.bouncycastle.cert.ocsp.CertificateID
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.cert.ocsp.CertificateID
super_class: java.lang.Object
{
public static final org.bouncycastle.asn1.x509.AlgorithmIdentifier HASH_SHA1;
descriptor: Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
private final org.bouncycastle.asn1.ocsp.CertID id;
descriptor: Lorg/bouncycastle/asn1/ocsp/CertID;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: new org.bouncycastle.asn1.x509.AlgorithmIdentifier
dup
getstatic org.bouncycastle.asn1.oiw.OIWObjectIdentifiers.idSHA1:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
getstatic org.bouncycastle.asn1.DERNull.INSTANCE:Lorg/bouncycastle/asn1/DERNull;
invokespecial org.bouncycastle.asn1.x509.AlgorithmIdentifier.<init>:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;Lorg/bouncycastle/asn1/ASN1Encodable;)V
putstatic org.bouncycastle.cert.ocsp.CertificateID.HASH_SHA1:Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
return
LocalVariableTable:
Start End Slot Name Signature
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.cert.ocsp.CertificateID org.bouncycastle.asn1.ocsp.CertID
StackMap stack:
aload 0
aload 1
putfield org.bouncycastle.cert.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/cert/ocsp/CertificateID;
0 5 1 id Lorg/bouncycastle/asn1/ocsp/CertID;
MethodParameters:
Name Flags
id
public void <init>(org.bouncycastle.operator.DigestCalculator, org.bouncycastle.cert.X509CertificateHolder, java.math.BigInteger);
descriptor: (Lorg/bouncycastle/operator/DigestCalculator;Lorg/bouncycastle/cert/X509CertificateHolder;Ljava/math/BigInteger;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
aload 2
new org.bouncycastle.asn1.ASN1Integer
dup
aload 3
invokespecial org.bouncycastle.asn1.ASN1Integer.<init>:(Ljava/math/BigInteger;)V
invokestatic org.bouncycastle.cert.ocsp.CertificateID.createCertID:(Lorg/bouncycastle/operator/DigestCalculator;Lorg/bouncycastle/cert/X509CertificateHolder;Lorg/bouncycastle/asn1/ASN1Integer;)Lorg/bouncycastle/asn1/ocsp/CertID;
putfield org.bouncycastle.cert.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
2: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/cert/ocsp/CertificateID;
0 3 1 digestCalculator Lorg/bouncycastle/operator/DigestCalculator;
0 3 2 issuerCert Lorg/bouncycastle/cert/X509CertificateHolder;
0 3 3 number Ljava/math/BigInteger;
Exceptions:
throws org.bouncycastle.cert.ocsp.OCSPException
MethodParameters:
Name Flags
digestCalculator
issuerCert
number
public org.bouncycastle.asn1.ASN1ObjectIdentifier getHashAlgOID();
descriptor: ()Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.cert.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.getAlgorithm:()Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cert/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.cert.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/cert/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.cert.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/cert/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.cert.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getSerialNumber:()Lorg/bouncycastle/asn1/ASN1Integer;
invokevirtual org.bouncycastle.asn1.ASN1Integer.getValue:()Ljava/math/BigInteger;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cert/ocsp/CertificateID;
public boolean matchesIssuer(org.bouncycastle.cert.X509CertificateHolder, org.bouncycastle.operator.DigestCalculatorProvider);
descriptor: (Lorg/bouncycastle/cert/X509CertificateHolder;Lorg/bouncycastle/operator/DigestCalculatorProvider;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 0
getfield org.bouncycastle.cert.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getHashAlgorithm:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokeinterface org.bouncycastle.operator.DigestCalculatorProvider.get:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)Lorg/bouncycastle/operator/DigestCalculator;
aload 1
aload 0
getfield org.bouncycastle.cert.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getSerialNumber:()Lorg/bouncycastle/asn1/ASN1Integer;
invokestatic org.bouncycastle.cert.ocsp.CertificateID.createCertID:(Lorg/bouncycastle/operator/DigestCalculator;Lorg/bouncycastle/cert/X509CertificateHolder;Lorg/bouncycastle/asn1/ASN1Integer;)Lorg/bouncycastle/asn1/ocsp/CertID;
aload 0
getfield org.bouncycastle.cert.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.equals:(Ljava/lang/Object;)Z
1: ireturn
2: StackMap locals:
StackMap stack: org.bouncycastle.operator.OperatorCreationException
astore 3
start local 3 3: new org.bouncycastle.cert.ocsp.OCSPException
dup
new java.lang.StringBuilder
dup
ldc "unable to create digest calculator: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual org.bouncycastle.operator.OperatorCreationException.getMessage:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial org.bouncycastle.cert.ocsp.OCSPException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/bouncycastle/cert/ocsp/CertificateID;
0 4 1 issuerCert Lorg/bouncycastle/cert/X509CertificateHolder;
0 4 2 digCalcProvider Lorg/bouncycastle/operator/DigestCalculatorProvider;
3 4 3 e Lorg/bouncycastle/operator/OperatorCreationException;
Exception table:
from to target type
0 1 2 Class org.bouncycastle.operator.OperatorCreationException
Exceptions:
throws org.bouncycastle.cert.ocsp.OCSPException
MethodParameters:
Name Flags
issuerCert
digCalcProvider
public org.bouncycastle.asn1.ocsp.CertID toASN1Primitive();
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.cert.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cert/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.cert.ocsp.CertificateID
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 1
checkcast org.bouncycastle.cert.ocsp.CertificateID
astore 2
start local 2 3: aload 0
getfield org.bouncycastle.cert.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.toASN1Primitive:()Lorg/bouncycastle/asn1/ASN1Primitive;
aload 2
getfield org.bouncycastle.cert.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.toASN1Primitive:()Lorg/bouncycastle/asn1/ASN1Primitive;
invokevirtual org.bouncycastle.asn1.ASN1Primitive.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/cert/ocsp/CertificateID;
0 4 1 o Ljava/lang/Object;
3 4 2 obj Lorg/bouncycastle/cert/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.cert.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.toASN1Primitive:()Lorg/bouncycastle/asn1/ASN1Primitive;
invokevirtual org.bouncycastle.asn1.ASN1Primitive.hashCode:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cert/ocsp/CertificateID;
public static org.bouncycastle.cert.ocsp.CertificateID deriveCertificateID(org.bouncycastle.cert.ocsp.CertificateID, java.math.BigInteger);
descriptor: (Lorg/bouncycastle/cert/ocsp/CertificateID;Ljava/math/BigInteger;)Lorg/bouncycastle/cert/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.cert.ocsp.CertificateID
dup
new org.bouncycastle.asn1.ocsp.CertID
dup
aload 0
getfield org.bouncycastle.cert.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.cert.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getIssuerNameHash:()Lorg/bouncycastle/asn1/ASN1OctetString;
aload 0
getfield org.bouncycastle.cert.ocsp.CertificateID.id:Lorg/bouncycastle/asn1/ocsp/CertID;
invokevirtual org.bouncycastle.asn1.ocsp.CertID.getIssuerKeyHash:()Lorg/bouncycastle/asn1/ASN1OctetString;
new org.bouncycastle.asn1.ASN1Integer
dup
aload 1
invokespecial org.bouncycastle.asn1.ASN1Integer.<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/ASN1Integer;)V
invokespecial org.bouncycastle.cert.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/cert/ocsp/CertificateID;
0 1 1 newSerialNumber Ljava/math/BigInteger;
MethodParameters:
Name Flags
original
newSerialNumber
private static org.bouncycastle.asn1.ocsp.CertID createCertID(org.bouncycastle.operator.DigestCalculator, org.bouncycastle.cert.X509CertificateHolder, org.bouncycastle.asn1.ASN1Integer);
descriptor: (Lorg/bouncycastle/operator/DigestCalculator;Lorg/bouncycastle/cert/X509CertificateHolder;Lorg/bouncycastle/asn1/ASN1Integer;)Lorg/bouncycastle/asn1/ocsp/CertID;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=7, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokeinterface org.bouncycastle.operator.DigestCalculator.getOutputStream:()Ljava/io/OutputStream;
astore 3
start local 3 1: aload 3
aload 1
invokevirtual org.bouncycastle.cert.X509CertificateHolder.toASN1Structure:()Lorg/bouncycastle/asn1/x509/Certificate;
invokevirtual org.bouncycastle.asn1.x509.Certificate.getSubject:()Lorg/bouncycastle/asn1/x500/X500Name;
ldc "DER"
invokevirtual org.bouncycastle.asn1.x500.X500Name.getEncoded:(Ljava/lang/String;)[B
invokevirtual java.io.OutputStream.write:([B)V
2: aload 3
invokevirtual java.io.OutputStream.close:()V
3: new org.bouncycastle.asn1.DEROctetString
dup
aload 0
invokeinterface org.bouncycastle.operator.DigestCalculator.getDigest:()[B
invokespecial org.bouncycastle.asn1.DEROctetString.<init>:([B)V
astore 4
start local 4 4: aload 1
invokevirtual org.bouncycastle.cert.X509CertificateHolder.getSubjectPublicKeyInfo:()Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
astore 5
start local 5 5: aload 0
invokeinterface org.bouncycastle.operator.DigestCalculator.getOutputStream:()Ljava/io/OutputStream;
astore 3
6: aload 3
aload 5
invokevirtual org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getPublicKeyData:()Lorg/bouncycastle/asn1/DERBitString;
invokevirtual org.bouncycastle.asn1.DERBitString.getBytes:()[B
invokevirtual java.io.OutputStream.write:([B)V
7: aload 3
invokevirtual java.io.OutputStream.close:()V
8: new org.bouncycastle.asn1.DEROctetString
dup
aload 0
invokeinterface org.bouncycastle.operator.DigestCalculator.getDigest:()[B
invokespecial org.bouncycastle.asn1.DEROctetString.<init>:([B)V
astore 6
start local 6 9: new org.bouncycastle.asn1.ocsp.CertID
dup
aload 0
invokeinterface org.bouncycastle.operator.DigestCalculator.getAlgorithmIdentifier:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
aload 4
aload 6
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/ASN1Integer;)V
10: areturn
end local 6 end local 5 end local 4 end local 3 11: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 12: new org.bouncycastle.cert.ocsp.OCSPException
dup
new java.lang.StringBuilder
dup
ldc "problem creating ID: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 3
invokespecial org.bouncycastle.cert.ocsp.OCSPException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 digCalc Lorg/bouncycastle/operator/DigestCalculator;
0 13 1 issuerCert Lorg/bouncycastle/cert/X509CertificateHolder;
0 13 2 serialNumber Lorg/bouncycastle/asn1/ASN1Integer;
1 11 3 dgOut Ljava/io/OutputStream;
4 11 4 issuerNameHash Lorg/bouncycastle/asn1/ASN1OctetString;
5 11 5 info Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
9 11 6 issuerKeyHash Lorg/bouncycastle/asn1/ASN1OctetString;
12 13 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 10 11 Class java.lang.Exception
Exceptions:
throws org.bouncycastle.cert.ocsp.OCSPException
MethodParameters:
Name Flags
digCalc
issuerCert
serialNumber
}
SourceFile: "CertificateID.java"