final class sun.security.pkcs11.P11DSAKeyFactory extends sun.security.pkcs11.P11KeyFactory
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.pkcs11.P11DSAKeyFactory
super_class: sun.security.pkcs11.P11KeyFactory
{
void <init>(sun.security.pkcs11.Token, java.lang.String);
descriptor: (Lsun/security/pkcs11/Token;Ljava/lang/String;)V
flags: (0x0000)
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
invokespecial sun.security.pkcs11.P11KeyFactory.<init>:(Lsun/security/pkcs11/Token;Ljava/lang/String;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/pkcs11/P11DSAKeyFactory;
0 2 1 token Lsun/security/pkcs11/Token;
0 2 2 algorithm Ljava/lang/String;
MethodParameters:
Name Flags
token
algorithm
java.security.PublicKey implTranslatePublicKey(java.security.PublicKey);
descriptor: (Ljava/security/PublicKey;)Ljava/security/PublicKey;
flags: (0x0000)
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.security.interfaces.DSAPublicKey
ifeq 10
1: aload 1
checkcast java.security.interfaces.DSAPublicKey
astore 2
start local 2 2: aload 2
invokeinterface java.security.interfaces.DSAPublicKey.getParams:()Ljava/security/interfaces/DSAParams;
astore 3
start local 3 3: aload 0
4: aload 2
invokeinterface java.security.interfaces.DSAPublicKey.getY:()Ljava/math/BigInteger;
5: aload 3
invokeinterface java.security.interfaces.DSAParams.getP:()Ljava/math/BigInteger;
6: aload 3
invokeinterface java.security.interfaces.DSAParams.getQ:()Ljava/math/BigInteger;
7: aload 3
invokeinterface java.security.interfaces.DSAParams.getG:()Ljava/math/BigInteger;
8: invokevirtual sun.security.pkcs11.P11DSAKeyFactory.generatePublic:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/security/PublicKey;
9: areturn
end local 3 end local 2 10: StackMap locals:
StackMap stack:
ldc "X.509"
aload 1
invokeinterface java.security.PublicKey.getFormat:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
11: aload 1
invokeinterface java.security.PublicKey.getEncoded:()[B
astore 2
start local 2 12: new sun.security.provider.DSAPublicKey
dup
aload 2
invokespecial sun.security.provider.DSAPublicKey.<init>:([B)V
astore 1
13: aload 0
aload 1
invokevirtual sun.security.pkcs11.P11DSAKeyFactory.implTranslatePublicKey:(Ljava/security/PublicKey;)Ljava/security/PublicKey;
14: areturn
end local 2 15: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "PublicKey must be instance of DSAPublicKey or have X.509 encoding"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 17: new java.security.InvalidKeyException
dup
ldc "Could not create DSA public key"
aload 2
invokespecial java.security.InvalidKeyException.<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 18 0 this Lsun/security/pkcs11/P11DSAKeyFactory;
0 18 1 key Ljava/security/PublicKey;
2 10 2 dsaKey Ljava/security/interfaces/DSAPublicKey;
3 10 3 params Ljava/security/interfaces/DSAParams;
12 15 2 encoded [B
17 18 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
0 9 16 Class sun.security.pkcs11.wrapper.PKCS11Exception
10 14 16 Class sun.security.pkcs11.wrapper.PKCS11Exception
15 16 16 Class sun.security.pkcs11.wrapper.PKCS11Exception
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
java.security.PrivateKey implTranslatePrivateKey(java.security.PrivateKey);
descriptor: (Ljava/security/PrivateKey;)Ljava/security/PrivateKey;
flags: (0x0000)
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 1
instanceof java.security.interfaces.DSAPrivateKey
ifeq 10
1: aload 1
checkcast java.security.interfaces.DSAPrivateKey
astore 2
start local 2 2: aload 2
invokeinterface java.security.interfaces.DSAPrivateKey.getParams:()Ljava/security/interfaces/DSAParams;
astore 3
start local 3 3: aload 0
4: aload 2
invokeinterface java.security.interfaces.DSAPrivateKey.getX:()Ljava/math/BigInteger;
5: aload 3
invokeinterface java.security.interfaces.DSAParams.getP:()Ljava/math/BigInteger;
6: aload 3
invokeinterface java.security.interfaces.DSAParams.getQ:()Ljava/math/BigInteger;
7: aload 3
invokeinterface java.security.interfaces.DSAParams.getG:()Ljava/math/BigInteger;
8: invokevirtual sun.security.pkcs11.P11DSAKeyFactory.generatePrivate:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/security/PrivateKey;
9: areturn
end local 3 end local 2 10: StackMap locals:
StackMap stack:
ldc "PKCS#8"
aload 1
invokeinterface java.security.PrivateKey.getFormat:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 15
11: aload 1
invokeinterface java.security.PrivateKey.getEncoded:()[B
astore 2
start local 2 12: new sun.security.provider.DSAPrivateKey
dup
aload 2
invokespecial sun.security.provider.DSAPrivateKey.<init>:([B)V
astore 1
13: aload 0
aload 1
invokevirtual sun.security.pkcs11.P11DSAKeyFactory.implTranslatePrivateKey:(Ljava/security/PrivateKey;)Ljava/security/PrivateKey;
14: areturn
end local 2 15: StackMap locals:
StackMap stack:
new java.security.InvalidKeyException
dup
ldc "PrivateKey must be instance of DSAPrivateKey or have PKCS#8 encoding"
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
16: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 17: new java.security.InvalidKeyException
dup
ldc "Could not create DSA private key"
aload 2
invokespecial java.security.InvalidKeyException.<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 18 0 this Lsun/security/pkcs11/P11DSAKeyFactory;
0 18 1 key Ljava/security/PrivateKey;
2 10 2 dsaKey Ljava/security/interfaces/DSAPrivateKey;
3 10 3 params Ljava/security/interfaces/DSAParams;
12 15 2 encoded [B
17 18 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
0 9 16 Class sun.security.pkcs11.wrapper.PKCS11Exception
10 14 16 Class sun.security.pkcs11.wrapper.PKCS11Exception
15 16 16 Class sun.security.pkcs11.wrapper.PKCS11Exception
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
key
protected java.security.PublicKey engineGeneratePublic(java.security.spec.KeySpec);
descriptor: (Ljava/security/spec/KeySpec;)Ljava/security/PublicKey;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.ensureValid:()V
1: aload 1
instanceof java.security.spec.X509EncodedKeySpec
ifeq 10
2: aload 1
checkcast java.security.spec.X509EncodedKeySpec
invokevirtual java.security.spec.X509EncodedKeySpec.getEncoded:()[B
astore 2
start local 2 3: new sun.security.provider.DSAPublicKey
dup
aload 2
invokespecial sun.security.provider.DSAPublicKey.<init>:([B)V
astore 3
start local 3 4: aload 0
aload 3
invokevirtual sun.security.pkcs11.P11DSAKeyFactory.implTranslatePublicKey:(Ljava/security/PublicKey;)Ljava/security/PublicKey;
5: areturn
end local 3 end local 2 6: StackMap locals:
StackMap stack: java.security.InvalidKeyException
astore 2
start local 2 7: new java.security.spec.InvalidKeySpecException
dup
8: ldc "Could not create DSA public key"
aload 2
9: invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 10: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.spec.DSAPublicKeySpec
ifne 12
11: new java.security.spec.InvalidKeySpecException
dup
ldc "Only DSAPublicKeySpec and X509EncodedKeySpec supported for DSA public keys"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 1
checkcast java.security.spec.DSAPublicKeySpec
astore 2
start local 2 13: aload 0
14: aload 2
invokevirtual java.security.spec.DSAPublicKeySpec.getY:()Ljava/math/BigInteger;
15: aload 2
invokevirtual java.security.spec.DSAPublicKeySpec.getP:()Ljava/math/BigInteger;
16: aload 2
invokevirtual java.security.spec.DSAPublicKeySpec.getQ:()Ljava/math/BigInteger;
17: aload 2
invokevirtual java.security.spec.DSAPublicKeySpec.getG:()Ljava/math/BigInteger;
18: invokevirtual sun.security.pkcs11.P11DSAKeyFactory.generatePublic:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/security/PublicKey;
19: areturn
end local 2 20: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 21: new java.security.spec.InvalidKeySpecException
dup
22: ldc "Could not create DSA public key"
aload 2
23: invokespecial java.security.spec.InvalidKeySpecException.<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 24 0 this Lsun/security/pkcs11/P11DSAKeyFactory;
0 24 1 keySpec Ljava/security/spec/KeySpec;
3 6 2 encoded [B
4 6 3 key Ljava/security/PublicKey;
7 10 2 e Ljava/security/InvalidKeyException;
13 20 2 ds Ljava/security/spec/DSAPublicKeySpec;
21 24 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
2 5 6 Class java.security.InvalidKeyException
12 19 20 Class sun.security.pkcs11.wrapper.PKCS11Exception
Exceptions:
throws java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
keySpec
protected java.security.PrivateKey engineGeneratePrivate(java.security.spec.KeySpec);
descriptor: (Ljava/security/spec/KeySpec;)Ljava/security/PrivateKey;
flags: (0x0004) ACC_PROTECTED
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.ensureValid:()V
1: aload 1
instanceof java.security.spec.PKCS8EncodedKeySpec
ifeq 10
2: aload 1
checkcast java.security.spec.PKCS8EncodedKeySpec
invokevirtual java.security.spec.PKCS8EncodedKeySpec.getEncoded:()[B
astore 2
start local 2 3: new sun.security.provider.DSAPrivateKey
dup
aload 2
invokespecial sun.security.provider.DSAPrivateKey.<init>:([B)V
astore 3
start local 3 4: aload 0
aload 3
invokevirtual sun.security.pkcs11.P11DSAKeyFactory.implTranslatePrivateKey:(Ljava/security/PrivateKey;)Ljava/security/PrivateKey;
5: areturn
end local 3 end local 2 6: StackMap locals:
StackMap stack: java.security.GeneralSecurityException
astore 2
start local 2 7: new java.security.spec.InvalidKeySpecException
dup
8: ldc "Could not create DSA private key"
aload 2
9: invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 10: StackMap locals:
StackMap stack:
aload 1
instanceof java.security.spec.DSAPrivateKeySpec
ifne 12
11: new java.security.spec.InvalidKeySpecException
dup
ldc "Only DSAPrivateKeySpec and PKCS8EncodedKeySpec supported for DSA private keys"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals:
StackMap stack:
aload 1
checkcast java.security.spec.DSAPrivateKeySpec
astore 2
start local 2 13: aload 0
14: aload 2
invokevirtual java.security.spec.DSAPrivateKeySpec.getX:()Ljava/math/BigInteger;
15: aload 2
invokevirtual java.security.spec.DSAPrivateKeySpec.getP:()Ljava/math/BigInteger;
16: aload 2
invokevirtual java.security.spec.DSAPrivateKeySpec.getQ:()Ljava/math/BigInteger;
17: aload 2
invokevirtual java.security.spec.DSAPrivateKeySpec.getG:()Ljava/math/BigInteger;
18: invokevirtual sun.security.pkcs11.P11DSAKeyFactory.generatePrivate:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/security/PrivateKey;
19: areturn
end local 2 20: StackMap locals:
StackMap stack: sun.security.pkcs11.wrapper.PKCS11Exception
astore 2
start local 2 21: new java.security.spec.InvalidKeySpecException
dup
22: ldc "Could not create DSA private key"
aload 2
23: invokespecial java.security.spec.InvalidKeySpecException.<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 24 0 this Lsun/security/pkcs11/P11DSAKeyFactory;
0 24 1 keySpec Ljava/security/spec/KeySpec;
3 6 2 encoded [B
4 6 3 key Ljava/security/PrivateKey;
7 10 2 e Ljava/security/GeneralSecurityException;
13 20 2 ds Ljava/security/spec/DSAPrivateKeySpec;
21 24 2 e Lsun/security/pkcs11/wrapper/PKCS11Exception;
Exception table:
from to target type
2 5 6 Class java.security.GeneralSecurityException
12 19 20 Class sun.security.pkcs11.wrapper.PKCS11Exception
Exceptions:
throws java.security.spec.InvalidKeySpecException
MethodParameters:
Name Flags
keySpec
private java.security.PublicKey generatePublic(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger);
descriptor: (Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/security/PublicKey;
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=11, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: bipush 6
anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
iconst_0
1: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
lconst_0
ldc 2
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
aastore
dup
iconst_1
2: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 256
lconst_1
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
aastore
dup
iconst_2
3: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 17
aload 1
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/math/BigInteger;)V
aastore
dup
iconst_3
4: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 304
aload 2
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/math/BigInteger;)V
aastore
dup
iconst_4
5: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 305
aload 3
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/math/BigInteger;)V
aastore
dup
iconst_5
6: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 306
aload 4
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/math/BigInteger;)V
aastore
7: astore 5
start local 5 8: aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
9: ldc "import"
ldc 2
lconst_1
aload 5
10: invokevirtual sun.security.pkcs11.Token.getAttributes:(Ljava/lang/String;JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
astore 5
11: aconst_null
astore 6
start local 6 12: aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
astore 6
13: aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 6
invokevirtual sun.security.pkcs11.Session.id:()J
aload 5
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_CreateObject:(J[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)J
lstore 7
start local 7 14: aload 6
lload 7
ldc "DSA"
aload 2
invokevirtual java.math.BigInteger.bitLength:()I
aload 5
15: invokestatic sun.security.pkcs11.P11Key.publicKey:(Lsun/security/pkcs11/Session;JLjava/lang/String;I[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)Ljava/security/PublicKey;
astore 10
16: aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
aload 6
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
17: aload 10
areturn
end local 7 18: StackMap locals: sun.security.pkcs11.P11DSAKeyFactory java.math.BigInteger java.math.BigInteger java.math.BigInteger java.math.BigInteger sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] sun.security.pkcs11.Session
StackMap stack: java.lang.Throwable
astore 9
19: aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
aload 6
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
20: aload 9
athrow
end local 6 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 21 0 this Lsun/security/pkcs11/P11DSAKeyFactory;
0 21 1 y Ljava/math/BigInteger;
0 21 2 p Ljava/math/BigInteger;
0 21 3 q Ljava/math/BigInteger;
0 21 4 g Ljava/math/BigInteger;
8 21 5 attributes [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
12 21 6 session Lsun/security/pkcs11/Session;
14 18 7 keyID J
Exception table:
from to target type
12 16 18 any
Exceptions:
throws sun.security.pkcs11.wrapper.PKCS11Exception
MethodParameters:
Name Flags
y
p
q
g
private java.security.PrivateKey generatePrivate(java.math.BigInteger, java.math.BigInteger, java.math.BigInteger, java.math.BigInteger);
descriptor: (Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)Ljava/security/PrivateKey;
flags: (0x0002) ACC_PRIVATE
Code:
stack=9, locals=11, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: bipush 6
anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
iconst_0
1: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
lconst_0
ldc 3
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
aastore
dup
iconst_1
2: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 256
lconst_1
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JJ)V
aastore
dup
iconst_2
3: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 17
aload 1
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/math/BigInteger;)V
aastore
dup
iconst_3
4: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 304
aload 2
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/math/BigInteger;)V
aastore
dup
iconst_4
5: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 305
aload 3
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/math/BigInteger;)V
aastore
dup
iconst_5
6: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 306
aload 4
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(JLjava/math/BigInteger;)V
aastore
7: astore 5
start local 5 8: aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
9: ldc "import"
ldc 3
lconst_1
aload 5
10: invokevirtual sun.security.pkcs11.Token.getAttributes:(Ljava/lang/String;JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
astore 5
11: aconst_null
astore 6
start local 6 12: aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
astore 6
13: aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 6
invokevirtual sun.security.pkcs11.Session.id:()J
aload 5
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_CreateObject:(J[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)J
lstore 7
start local 7 14: aload 6
lload 7
ldc "DSA"
aload 2
invokevirtual java.math.BigInteger.bitLength:()I
aload 5
15: invokestatic sun.security.pkcs11.P11Key.privateKey:(Lsun/security/pkcs11/Session;JLjava/lang/String;I[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)Ljava/security/PrivateKey;
astore 10
16: aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
aload 6
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
17: aload 10
areturn
end local 7 18: StackMap locals: sun.security.pkcs11.P11DSAKeyFactory java.math.BigInteger java.math.BigInteger java.math.BigInteger java.math.BigInteger sun.security.pkcs11.wrapper.CK_ATTRIBUTE[] sun.security.pkcs11.Session
StackMap stack: java.lang.Throwable
astore 9
19: aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
aload 6
invokevirtual sun.security.pkcs11.Token.releaseSession:(Lsun/security/pkcs11/Session;)Lsun/security/pkcs11/Session;
pop
20: aload 9
athrow
end local 6 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 21 0 this Lsun/security/pkcs11/P11DSAKeyFactory;
0 21 1 x Ljava/math/BigInteger;
0 21 2 p Ljava/math/BigInteger;
0 21 3 q Ljava/math/BigInteger;
0 21 4 g Ljava/math/BigInteger;
8 21 5 attributes [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
12 21 6 session Lsun/security/pkcs11/Session;
14 18 7 keyID J
Exception table:
from to target type
12 16 18 any
Exceptions:
throws sun.security.pkcs11.wrapper.PKCS11Exception
MethodParameters:
Name Flags
x
p
q
g
<T extends java.security.spec.KeySpec> T implGetPublicKeySpec(sun.security.pkcs11.P11Key, java.lang.Class<T>, sun.security.pkcs11.Session[]);
descriptor: (Lsun/security/pkcs11/P11Key;Ljava/lang/Class;[Lsun/security/pkcs11/Session;)Ljava/security/spec/KeySpec;
flags: (0x0000)
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc Ljava/security/spec/DSAPublicKeySpec;
aload 2
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 16
1: aload 3
iconst_0
aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
aastore
2: iconst_4
anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
iconst_0
3: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 17
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
dup
iconst_1
4: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 304
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
dup
iconst_2
5: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 305
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
dup
iconst_3
6: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 306
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
7: astore 4
start local 4 8: aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 3
iconst_0
aaload
invokevirtual sun.security.pkcs11.Session.id:()J
aload 1
getfield sun.security.pkcs11.P11Key.keyID:J
aload 4
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_GetAttributeValue:(JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)V
9: new java.security.spec.DSAPublicKeySpec
dup
10: aload 4
iconst_0
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
11: aload 4
iconst_1
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
12: aload 4
iconst_2
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
13: aload 4
iconst_3
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
14: invokespecial java.security.spec.DSAPublicKeySpec.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
astore 5
start local 5 15: aload 2
aload 5
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.KeySpec
areturn
end local 5 end local 4 16: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
ldc "Only DSAPublicKeySpec and X509EncodedKeySpec supported for DSA public keys"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/security/pkcs11/P11DSAKeyFactory;
0 17 1 key Lsun/security/pkcs11/P11Key;
0 17 2 keySpec Ljava/lang/Class<TT;>;
0 17 3 session [Lsun/security/pkcs11/Session;
8 16 4 attributes [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
15 16 5 spec Ljava/security/spec/KeySpec;
Exceptions:
throws sun.security.pkcs11.wrapper.PKCS11Exception, java.security.spec.InvalidKeySpecException
Signature: <T::Ljava/security/spec/KeySpec;>(Lsun/security/pkcs11/P11Key;Ljava/lang/Class<TT;>;[Lsun/security/pkcs11/Session;)TT;
MethodParameters:
Name Flags
key
keySpec
session
<T extends java.security.spec.KeySpec> T implGetPrivateKeySpec(sun.security.pkcs11.P11Key, java.lang.Class<T>, sun.security.pkcs11.Session[]);
descriptor: (Lsun/security/pkcs11/P11Key;Ljava/lang/Class;[Lsun/security/pkcs11/Session;)Ljava/security/spec/KeySpec;
flags: (0x0000)
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: ldc Ljava/security/spec/DSAPrivateKeySpec;
aload 2
invokevirtual java.lang.Class.isAssignableFrom:(Ljava/lang/Class;)Z
ifeq 16
1: aload 3
iconst_0
aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
invokevirtual sun.security.pkcs11.Token.getObjSession:()Lsun/security/pkcs11/Session;
aastore
2: iconst_4
anewarray sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
iconst_0
3: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 17
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
dup
iconst_1
4: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 304
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
dup
iconst_2
5: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 305
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
dup
iconst_3
6: new sun.security.pkcs11.wrapper.CK_ATTRIBUTE
dup
ldc 306
invokespecial sun.security.pkcs11.wrapper.CK_ATTRIBUTE.<init>:(J)V
aastore
7: astore 4
start local 4 8: aload 0
getfield sun.security.pkcs11.P11DSAKeyFactory.token:Lsun/security/pkcs11/Token;
getfield sun.security.pkcs11.Token.p11:Lsun/security/pkcs11/wrapper/PKCS11;
aload 3
iconst_0
aaload
invokevirtual sun.security.pkcs11.Session.id:()J
aload 1
getfield sun.security.pkcs11.P11Key.keyID:J
aload 4
invokevirtual sun.security.pkcs11.wrapper.PKCS11.C_GetAttributeValue:(JJ[Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;)V
9: new java.security.spec.DSAPrivateKeySpec
dup
10: aload 4
iconst_0
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
11: aload 4
iconst_1
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
12: aload 4
iconst_2
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
13: aload 4
iconst_3
aaload
invokevirtual sun.security.pkcs11.wrapper.CK_ATTRIBUTE.getBigInteger:()Ljava/math/BigInteger;
14: invokespecial java.security.spec.DSAPrivateKeySpec.<init>:(Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;Ljava/math/BigInteger;)V
astore 5
start local 5 15: aload 2
aload 5
invokevirtual java.lang.Class.cast:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.security.spec.KeySpec
areturn
end local 5 end local 4 16: StackMap locals:
StackMap stack:
new java.security.spec.InvalidKeySpecException
dup
ldc "Only DSAPrivateKeySpec and PKCS8EncodedKeySpec supported for DSA private keys"
invokespecial java.security.spec.InvalidKeySpecException.<init>:(Ljava/lang/String;)V
athrow
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lsun/security/pkcs11/P11DSAKeyFactory;
0 17 1 key Lsun/security/pkcs11/P11Key;
0 17 2 keySpec Ljava/lang/Class<TT;>;
0 17 3 session [Lsun/security/pkcs11/Session;
8 16 4 attributes [Lsun/security/pkcs11/wrapper/CK_ATTRIBUTE;
15 16 5 spec Ljava/security/spec/KeySpec;
Exceptions:
throws sun.security.pkcs11.wrapper.PKCS11Exception, java.security.spec.InvalidKeySpecException
Signature: <T::Ljava/security/spec/KeySpec;>(Lsun/security/pkcs11/P11Key;Ljava/lang/Class<TT;>;[Lsun/security/pkcs11/Session;)TT;
MethodParameters:
Name Flags
key
keySpec
session
java.security.KeyFactory implGetSoftwareFactory();
descriptor: ()Ljava/security/KeyFactory;
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "DSA"
invokestatic sun.security.pkcs11.P11Util.getSunProvider:()Ljava/security/Provider;
invokestatic java.security.KeyFactory.getInstance:(Ljava/lang/String;Ljava/security/Provider;)Ljava/security/KeyFactory;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs11/P11DSAKeyFactory;
Exceptions:
throws java.security.GeneralSecurityException
}
SourceFile: "P11DSAKeyFactory.java"