public class org.bouncycastle.cert.cmp.ProtectedPKIMessage
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.cert.cmp.ProtectedPKIMessage
super_class: java.lang.Object
{
private org.bouncycastle.asn1.cmp.PKIMessage pkiMessage;
descriptor: Lorg/bouncycastle/asn1/cmp/PKIMessage;
flags: (0x0002) ACC_PRIVATE
public void <init>(org.bouncycastle.cert.cmp.GeneralPKIMessage);
descriptor: (Lorg/bouncycastle/cert/cmp/GeneralPKIMessage;)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
invokevirtual org.bouncycastle.cert.cmp.GeneralPKIMessage.hasProtection:()Z
ifne 3
2: new java.lang.IllegalArgumentException
dup
ldc "PKIMessage not protected"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.bouncycastle.cert.cmp.ProtectedPKIMessage org.bouncycastle.cert.cmp.GeneralPKIMessage
StackMap stack:
aload 0
aload 1
invokevirtual org.bouncycastle.cert.cmp.GeneralPKIMessage.toASN1Structure:()Lorg/bouncycastle/asn1/cmp/PKIMessage;
putfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/cert/cmp/ProtectedPKIMessage;
0 5 1 pkiMessage Lorg/bouncycastle/cert/cmp/GeneralPKIMessage;
MethodParameters:
Name Flags
pkiMessage
void <init>(org.bouncycastle.asn1.cmp.PKIMessage);
descriptor: (Lorg/bouncycastle/asn1/cmp/PKIMessage;)V
flags: (0x0000)
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
invokevirtual org.bouncycastle.asn1.cmp.PKIMessage.getHeader:()Lorg/bouncycastle/asn1/cmp/PKIHeader;
invokevirtual org.bouncycastle.asn1.cmp.PKIHeader.getProtectionAlg:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
ifnonnull 3
2: new java.lang.IllegalArgumentException
dup
ldc "PKIMessage not protected"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.bouncycastle.cert.cmp.ProtectedPKIMessage org.bouncycastle.asn1.cmp.PKIMessage
StackMap stack:
aload 0
aload 1
putfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/cert/cmp/ProtectedPKIMessage;
0 5 1 pkiMessage Lorg/bouncycastle/asn1/cmp/PKIMessage;
MethodParameters:
Name Flags
pkiMessage
public org.bouncycastle.asn1.cmp.PKIHeader ();
descriptor: ()Lorg/bouncycastle/asn1/cmp/PKIHeader;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
invokevirtual org.bouncycastle.asn1.cmp.PKIMessage.getHeader:()Lorg/bouncycastle/asn1/cmp/PKIHeader;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cert/cmp/ProtectedPKIMessage;
public org.bouncycastle.asn1.cmp.PKIBody getBody();
descriptor: ()Lorg/bouncycastle/asn1/cmp/PKIBody;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
invokevirtual org.bouncycastle.asn1.cmp.PKIMessage.getBody:()Lorg/bouncycastle/asn1/cmp/PKIBody;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cert/cmp/ProtectedPKIMessage;
public org.bouncycastle.asn1.cmp.PKIMessage toASN1Structure();
descriptor: ()Lorg/bouncycastle/asn1/cmp/PKIMessage;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cert/cmp/ProtectedPKIMessage;
public boolean hasPasswordBasedMacProtection();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
invokevirtual org.bouncycastle.asn1.cmp.PKIMessage.getHeader:()Lorg/bouncycastle/asn1/cmp/PKIHeader;
invokevirtual org.bouncycastle.asn1.cmp.PKIHeader.getProtectionAlg:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokevirtual org.bouncycastle.asn1.x509.AlgorithmIdentifier.getAlgorithm:()Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
getstatic org.bouncycastle.asn1.cmp.CMPObjectIdentifiers.passwordBasedMac:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/cert/cmp/ProtectedPKIMessage;
public org.bouncycastle.cert.X509CertificateHolder[] getCertificates();
descriptor: ()[Lorg/bouncycastle/cert/X509CertificateHolder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
invokevirtual org.bouncycastle.asn1.cmp.PKIMessage.getExtraCerts:()[Lorg/bouncycastle/asn1/cmp/CMPCertificate;
astore 1
start local 1 1: aload 1
ifnonnull 3
2: iconst_0
anewarray org.bouncycastle.cert.X509CertificateHolder
areturn
3: StackMap locals: org.bouncycastle.asn1.cmp.CMPCertificate[]
StackMap stack:
aload 1
arraylength
anewarray org.bouncycastle.cert.X509CertificateHolder
astore 2
start local 2 4: iconst_0
istore 3
start local 3 5: goto 8
6: StackMap locals: org.bouncycastle.cert.X509CertificateHolder[] int
StackMap stack:
aload 2
iload 3
new org.bouncycastle.cert.X509CertificateHolder
dup
aload 1
iload 3
aaload
invokevirtual org.bouncycastle.asn1.cmp.CMPCertificate.getX509v3PKCert:()Lorg/bouncycastle/asn1/x509/Certificate;
invokespecial org.bouncycastle.cert.X509CertificateHolder.<init>:(Lorg/bouncycastle/asn1/x509/Certificate;)V
aastore
7: iinc 3 1
StackMap locals:
StackMap stack:
8: iload 3
aload 1
arraylength
if_icmpne 6
end local 3 9: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/bouncycastle/cert/cmp/ProtectedPKIMessage;
1 10 1 certs [Lorg/bouncycastle/asn1/cmp/CMPCertificate;
4 10 2 res [Lorg/bouncycastle/cert/X509CertificateHolder;
5 9 3 i I
public boolean verify(org.bouncycastle.operator.ContentVerifierProvider);
descriptor: (Lorg/bouncycastle/operator/ContentVerifierProvider;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
invokevirtual org.bouncycastle.asn1.cmp.PKIMessage.getHeader:()Lorg/bouncycastle/asn1/cmp/PKIHeader;
invokevirtual org.bouncycastle.asn1.cmp.PKIHeader.getProtectionAlg:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokeinterface org.bouncycastle.operator.ContentVerifierProvider.get:(Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;)Lorg/bouncycastle/operator/ContentVerifier;
astore 2
start local 2 1: aload 0
aload 0
getfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
invokevirtual org.bouncycastle.asn1.cmp.PKIMessage.getProtection:()Lorg/bouncycastle/asn1/DERBitString;
invokevirtual org.bouncycastle.asn1.DERBitString.getBytes:()[B
aload 2
invokevirtual org.bouncycastle.cert.cmp.ProtectedPKIMessage.verifySignature:([BLorg/bouncycastle/operator/ContentVerifier;)Z
2: ireturn
end local 2 3: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 4: new org.bouncycastle.cert.cmp.CMPException
dup
new java.lang.StringBuilder
dup
ldc "unable to verify signature: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.Exception.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.cmp.CMPException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/cert/cmp/ProtectedPKIMessage;
0 5 1 verifierProvider Lorg/bouncycastle/operator/ContentVerifierProvider;
1 3 2 verifier Lorg/bouncycastle/operator/ContentVerifier;
4 5 3 e Ljava/lang/Exception;
Exception table:
from to target type
0 2 3 Class java.lang.Exception
Exceptions:
throws org.bouncycastle.cert.cmp.CMPException
MethodParameters:
Name Flags
verifierProvider
public boolean verify(org.bouncycastle.cert.crmf.PKMACBuilder, char[]);
descriptor: (Lorg/bouncycastle/cert/crmf/PKMACBuilder;[C)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.bouncycastle.asn1.cmp.CMPObjectIdentifiers.passwordBasedMac:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
aload 0
getfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
invokevirtual org.bouncycastle.asn1.cmp.PKIMessage.getHeader:()Lorg/bouncycastle/asn1/cmp/PKIHeader;
invokevirtual org.bouncycastle.asn1.cmp.PKIHeader.getProtectionAlg:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokevirtual org.bouncycastle.asn1.x509.AlgorithmIdentifier.getAlgorithm:()Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.equals:(Ljava/lang/Object;)Z
ifne 2
1: new org.bouncycastle.cert.cmp.CMPException
dup
ldc "protection algorithm not mac based"
invokespecial org.bouncycastle.cert.cmp.CMPException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 1
aload 0
getfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
invokevirtual org.bouncycastle.asn1.cmp.PKIMessage.getHeader:()Lorg/bouncycastle/asn1/cmp/PKIHeader;
invokevirtual org.bouncycastle.asn1.cmp.PKIHeader.getProtectionAlg:()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
invokevirtual org.bouncycastle.asn1.x509.AlgorithmIdentifier.getParameters:()Lorg/bouncycastle/asn1/ASN1Encodable;
invokestatic org.bouncycastle.asn1.cmp.PBMParameter.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/cmp/PBMParameter;
invokevirtual org.bouncycastle.cert.crmf.PKMACBuilder.setParameters:(Lorg/bouncycastle/asn1/cmp/PBMParameter;)Lorg/bouncycastle/cert/crmf/PKMACBuilder;
pop
3: aload 1
aload 2
invokevirtual org.bouncycastle.cert.crmf.PKMACBuilder.build:([C)Lorg/bouncycastle/operator/MacCalculator;
astore 3
start local 3 4: aload 3
invokeinterface org.bouncycastle.operator.MacCalculator.getOutputStream:()Ljava/io/OutputStream;
astore 4
start local 4 5: new org.bouncycastle.asn1.ASN1EncodableVector
dup
invokespecial org.bouncycastle.asn1.ASN1EncodableVector.<init>:()V
astore 5
start local 5 6: aload 5
aload 0
getfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
invokevirtual org.bouncycastle.asn1.cmp.PKIMessage.getHeader:()Lorg/bouncycastle/asn1/cmp/PKIHeader;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/ASN1Encodable;)V
7: aload 5
aload 0
getfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
invokevirtual org.bouncycastle.asn1.cmp.PKIMessage.getBody:()Lorg/bouncycastle/asn1/cmp/PKIBody;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/ASN1Encodable;)V
8: aload 4
new org.bouncycastle.asn1.DERSequence
dup
aload 5
invokespecial org.bouncycastle.asn1.DERSequence.<init>:(Lorg/bouncycastle/asn1/ASN1EncodableVector;)V
ldc "DER"
invokevirtual org.bouncycastle.asn1.DERSequence.getEncoded:(Ljava/lang/String;)[B
invokevirtual java.io.OutputStream.write:([B)V
9: aload 4
invokevirtual java.io.OutputStream.close:()V
10: aload 3
invokeinterface org.bouncycastle.operator.MacCalculator.getMac:()[B
aload 0
getfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
invokevirtual org.bouncycastle.asn1.cmp.PKIMessage.getProtection:()Lorg/bouncycastle/asn1/DERBitString;
invokevirtual org.bouncycastle.asn1.DERBitString.getBytes:()[B
invokestatic org.bouncycastle.util.Arrays.areEqual:([B[B)Z
11: ireturn
end local 5 end local 4 end local 3 12: StackMap locals:
StackMap stack: java.lang.Exception
astore 3
start local 3 13: new org.bouncycastle.cert.cmp.CMPException
dup
new java.lang.StringBuilder
dup
ldc "unable to verify MAC: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.Exception.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.cmp.CMPException.<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 14 0 this Lorg/bouncycastle/cert/cmp/ProtectedPKIMessage;
0 14 1 pkMacBuilder Lorg/bouncycastle/cert/crmf/PKMACBuilder;
0 14 2 password [C
4 12 3 calculator Lorg/bouncycastle/operator/MacCalculator;
5 12 4 macOut Ljava/io/OutputStream;
6 12 5 v Lorg/bouncycastle/asn1/ASN1EncodableVector;
13 14 3 e Ljava/lang/Exception;
Exception table:
from to target type
2 11 12 Class java.lang.Exception
Exceptions:
throws org.bouncycastle.cert.cmp.CMPException
MethodParameters:
Name Flags
pkMacBuilder
password
private boolean verifySignature(byte[], org.bouncycastle.operator.ContentVerifier);
descriptor: ([BLorg/bouncycastle/operator/ContentVerifier;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: new org.bouncycastle.asn1.ASN1EncodableVector
dup
invokespecial org.bouncycastle.asn1.ASN1EncodableVector.<init>:()V
astore 3
start local 3 1: aload 3
aload 0
getfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
invokevirtual org.bouncycastle.asn1.cmp.PKIMessage.getHeader:()Lorg/bouncycastle/asn1/cmp/PKIHeader;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/ASN1Encodable;)V
2: aload 3
aload 0
getfield org.bouncycastle.cert.cmp.ProtectedPKIMessage.pkiMessage:Lorg/bouncycastle/asn1/cmp/PKIMessage;
invokevirtual org.bouncycastle.asn1.cmp.PKIMessage.getBody:()Lorg/bouncycastle/asn1/cmp/PKIBody;
invokevirtual org.bouncycastle.asn1.ASN1EncodableVector.add:(Lorg/bouncycastle/asn1/ASN1Encodable;)V
3: aload 2
invokeinterface org.bouncycastle.operator.ContentVerifier.getOutputStream:()Ljava/io/OutputStream;
astore 4
start local 4 4: aload 4
new org.bouncycastle.asn1.DERSequence
dup
aload 3
invokespecial org.bouncycastle.asn1.DERSequence.<init>:(Lorg/bouncycastle/asn1/ASN1EncodableVector;)V
ldc "DER"
invokevirtual org.bouncycastle.asn1.DERSequence.getEncoded:(Ljava/lang/String;)[B
invokevirtual java.io.OutputStream.write:([B)V
5: aload 4
invokevirtual java.io.OutputStream.close:()V
6: aload 2
aload 1
invokeinterface org.bouncycastle.operator.ContentVerifier.verify:([B)Z
ireturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/bouncycastle/cert/cmp/ProtectedPKIMessage;
0 7 1 signature [B
0 7 2 verifier Lorg/bouncycastle/operator/ContentVerifier;
1 7 3 v Lorg/bouncycastle/asn1/ASN1EncodableVector;
4 7 4 sOut Ljava/io/OutputStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
signature
verifier
}
SourceFile: "ProtectedPKIMessage.java"