public class org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder implements org.bouncycastle.pkcs.PKCS12MacCalculatorBuilder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder
super_class: java.lang.Object
{
private org.bouncycastle.jcajce.util.JcaJceHelper helper;
descriptor: Lorg/bouncycastle/jcajce/util/JcaJceHelper;
flags: (0x0002) ACC_PRIVATE
private org.bouncycastle.asn1.ASN1ObjectIdentifier algorithm;
descriptor: Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
flags: (0x0002) ACC_PRIVATE
private java.security.SecureRandom random;
descriptor: Ljava/security/SecureRandom;
flags: (0x0002) ACC_PRIVATE
private int saltLength;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int iterationCount;
descriptor: I
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic org.bouncycastle.asn1.oiw.OIWObjectIdentifiers.idSHA1:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokespecial org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.<init>:(Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/pkcs/jcajce/JcePKCS12MacCalculatorBuilder;
public void <init>(org.bouncycastle.asn1.ASN1ObjectIdentifier);
descriptor: (Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;)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 0
new org.bouncycastle.jcajce.util.DefaultJcaJceHelper
dup
invokespecial org.bouncycastle.jcajce.util.DefaultJcaJceHelper.<init>:()V
putfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.helper:Lorg/bouncycastle/jcajce/util/JcaJceHelper;
2: aload 0
sipush 1024
putfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.iterationCount:I
3: aload 0
aload 1
putfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.algorithm:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/bouncycastle/pkcs/jcajce/JcePKCS12MacCalculatorBuilder;
0 5 1 hashAlgorithm Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
MethodParameters:
Name Flags
hashAlgorithm
public org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder setProvider(java.security.Provider);
descriptor: (Ljava/security/Provider;)Lorg/bouncycastle/pkcs/jcajce/JcePKCS12MacCalculatorBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new org.bouncycastle.jcajce.util.ProviderJcaJceHelper
dup
aload 1
invokespecial org.bouncycastle.jcajce.util.ProviderJcaJceHelper.<init>:(Ljava/security/Provider;)V
putfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.helper:Lorg/bouncycastle/jcajce/util/JcaJceHelper;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/pkcs/jcajce/JcePKCS12MacCalculatorBuilder;
0 2 1 provider Ljava/security/Provider;
MethodParameters:
Name Flags
provider
public org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder setProvider(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/bouncycastle/pkcs/jcajce/JcePKCS12MacCalculatorBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new org.bouncycastle.jcajce.util.NamedJcaJceHelper
dup
aload 1
invokespecial org.bouncycastle.jcajce.util.NamedJcaJceHelper.<init>:(Ljava/lang/String;)V
putfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.helper:Lorg/bouncycastle/jcajce/util/JcaJceHelper;
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/pkcs/jcajce/JcePKCS12MacCalculatorBuilder;
0 2 1 providerName Ljava/lang/String;
MethodParameters:
Name Flags
providerName
public org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder setIterationCount(int);
descriptor: (I)Lorg/bouncycastle/pkcs/jcajce/JcePKCS12MacCalculatorBuilder;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.iterationCount:I
1: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/bouncycastle/pkcs/jcajce/JcePKCS12MacCalculatorBuilder;
0 2 1 iterationCount I
MethodParameters:
Name Flags
iterationCount
public org.bouncycastle.asn1.x509.AlgorithmIdentifier getDigestAlgorithmIdentifier();
descriptor: ()Lorg/bouncycastle/asn1/x509/AlgorithmIdentifier;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new org.bouncycastle.asn1.x509.AlgorithmIdentifier
dup
aload 0
getfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.algorithm: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
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/pkcs/jcajce/JcePKCS12MacCalculatorBuilder;
public org.bouncycastle.operator.MacCalculator build(char[]);
descriptor: ([C)Lorg/bouncycastle/operator/MacCalculator;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.random:Ljava/security/SecureRandom;
ifnonnull 2
1: aload 0
new java.security.SecureRandom
dup
invokespecial java.security.SecureRandom.<init>:()V
putfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.random:Ljava/security/SecureRandom;
2: StackMap locals:
StackMap stack:
aload 0
getfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.helper:Lorg/bouncycastle/jcajce/util/JcaJceHelper;
aload 0
getfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.algorithm:Lorg/bouncycastle/asn1/ASN1ObjectIdentifier;
invokevirtual org.bouncycastle.asn1.ASN1ObjectIdentifier.getId:()Ljava/lang/String;
invokeinterface org.bouncycastle.jcajce.util.JcaJceHelper.createMac:(Ljava/lang/String;)Ljavax/crypto/Mac;
astore 2
start local 2 3: aload 0
aload 2
invokevirtual javax.crypto.Mac.getMacLength:()I
putfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.saltLength:I
4: aload 0
getfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.saltLength:I
newarray 8
astore 3
start local 3 5: aload 0
getfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.random:Ljava/security/SecureRandom;
aload 3
invokevirtual java.security.SecureRandom.nextBytes:([B)V
6: new javax.crypto.spec.PBEParameterSpec
dup
aload 3
aload 0
getfield org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder.iterationCount:I
invokespecial javax.crypto.spec.PBEParameterSpec.<init>:([BI)V
astore 4
start local 4 7: new org.bouncycastle.jcajce.PKCS12Key
dup
aload 1
invokespecial org.bouncycastle.jcajce.PKCS12Key.<init>:([C)V
astore 5
start local 5 8: aload 2
aload 5
aload 4
invokevirtual javax.crypto.Mac.init:(Ljava/security/Key;Ljava/security/spec/AlgorithmParameterSpec;)V
9: new org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder$1
dup
aload 0
aload 3
aload 2
aload 5
invokespecial org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder$1.<init>:(Lorg/bouncycastle/pkcs/jcajce/JcePKCS12MacCalculatorBuilder;[BLjavax/crypto/Mac;Ljavax/crypto/SecretKey;)V
10: areturn
end local 5 end local 4 end local 3 end local 2 11: StackMap locals:
StackMap stack: java.lang.Exception
astore 2
start local 2 12: new org.bouncycastle.operator.OperatorCreationException
dup
new java.lang.StringBuilder
dup
ldc "unable to create MAC calculator: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
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 2
invokespecial org.bouncycastle.operator.OperatorCreationException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/bouncycastle/pkcs/jcajce/JcePKCS12MacCalculatorBuilder;
0 13 1 password [C
3 11 2 mac Ljavax/crypto/Mac;
5 11 3 salt [B
7 11 4 defParams Ljavax/crypto/spec/PBEParameterSpec;
8 11 5 key Ljavax/crypto/SecretKey;
12 13 2 e Ljava/lang/Exception;
Exception table:
from to target type
2 10 11 Class java.lang.Exception
Exceptions:
throws org.bouncycastle.operator.OperatorCreationException
MethodParameters:
Name Flags
password final
}
SourceFile: "JcePKCS12MacCalculatorBuilder.java"
NestMembers:
org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder$1
InnerClasses:
org.bouncycastle.pkcs.jcajce.JcePKCS12MacCalculatorBuilder$1