final class sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage extends sun.security.ssl.SSLHandshake$HandshakeMessage
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage
super_class: sun.security.ssl.SSLHandshake$HandshakeMessage
{
private final byte[] signature;
descriptor: [B
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
void <init>(sun.security.ssl.HandshakeContext, sun.security.ssl.X509Authentication$X509Possession);
descriptor: (Lsun/security/ssl/HandshakeContext;Lsun/security/ssl/X509Authentication$X509Possession;)V
flags: (0x0000)
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial sun.security.ssl.SSLHandshake$HandshakeMessage.<init>:(Lsun/security/ssl/HandshakeContext;)V
1: aload 1
checkcast sun.security.ssl.ClientHandshakeContext
astore 3
start local 3 2: aconst_null
astore 4
start local 4 3: aload 2
getfield sun.security.ssl.X509Authentication$X509Possession.popPrivateKey:Ljava/security/PrivateKey;
invokeinterface java.security.PrivateKey.getAlgorithm:()Ljava/lang/String;
astore 5
start local 5 4: aload 5
aload 2
getfield sun.security.ssl.X509Authentication$X509Possession.popPrivateKey:Ljava/security/PrivateKey;
invokestatic sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage.getSignature:(Ljava/lang/String;Ljava/security/Key;)Ljava/security/Signature;
5: astore 6
start local 6 6: aload 3
getfield sun.security.ssl.ClientHandshakeContext.handshakeHash:Lsun/security/ssl/HandshakeHash;
aload 5
7: aload 3
getfield sun.security.ssl.ClientHandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
invokevirtual sun.security.ssl.SSLSessionImpl.getMasterSecret:()Ljavax/crypto/SecretKey;
8: invokevirtual sun.security.ssl.HandshakeHash.digest:(Ljava/lang/String;Ljavax/crypto/SecretKey;)[B
astore 7
start local 7 9: aload 6
aload 7
invokevirtual java.security.Signature.update:([B)V
10: aload 6
invokevirtual java.security.Signature.sign:()[B
astore 4
end local 7 end local 6 11: goto 23
StackMap locals: sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage sun.security.ssl.HandshakeContext sun.security.ssl.X509Authentication$X509Possession sun.security.ssl.ClientHandshakeContext byte[] java.lang.String
StackMap stack: java.security.NoSuchAlgorithmException
12: astore 6
start local 6 13: aload 3
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
14: new java.lang.StringBuilder
dup
ldc "Unsupported signature algorithm ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
15: ldc ") used in CertificateVerify handshake message"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
16: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
17: aload 6
18: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;Ljava/lang/Throwable;)Ljavax/net/ssl/SSLException;
athrow
end local 6 19: StackMap locals:
StackMap stack: java.security.GeneralSecurityException
astore 6
start local 6 20: aload 3
getfield sun.security.ssl.ClientHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.HANDSHAKE_FAILURE:Lsun/security/ssl/Alert;
21: ldc "Cannot produce CertificateVerify signature"
aload 6
22: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;Ljava/lang/Throwable;)Ljavax/net/ssl/SSLException;
athrow
end local 6 23: StackMap locals:
StackMap stack:
aload 0
aload 4
putfield sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage.signature:[B
24: 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 25 0 this Lsun/security/ssl/CertificateVerify$S30CertificateVerifyMessage;
0 25 1 context Lsun/security/ssl/HandshakeContext;
0 25 2 x509Possession Lsun/security/ssl/X509Authentication$X509Possession;
2 25 3 chc Lsun/security/ssl/ClientHandshakeContext;
3 25 4 temproary [B
4 25 5 algorithm Ljava/lang/String;
6 11 6 signer Ljava/security/Signature;
9 11 7 hashes [B
13 19 6 nsae Ljava/security/NoSuchAlgorithmException;
20 23 6 gse Ljava/security/GeneralSecurityException;
Exception table:
from to target type
4 11 12 Class java.security.NoSuchAlgorithmException
4 11 19 Class java.security.GeneralSecurityException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
x509Possession
void <init>(sun.security.ssl.HandshakeContext, java.nio.ByteBuffer);
descriptor: (Lsun/security/ssl/HandshakeContext;Ljava/nio/ByteBuffer;)V
flags: (0x0000)
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokespecial sun.security.ssl.SSLHandshake$HandshakeMessage.<init>:(Lsun/security/ssl/HandshakeContext;)V
1: aload 1
checkcast sun.security.ssl.ServerHandshakeContext
astore 3
start local 3 2: aload 2
invokevirtual java.nio.ByteBuffer.remaining:()I
iconst_2
if_icmpge 6
3: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.ILLEGAL_PARAMETER:Lsun/security/ssl/Alert;
4: ldc "Invalid CertificateVerify message: no sufficient data"
5: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
6: StackMap locals: sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage sun.security.ssl.HandshakeContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext
StackMap stack:
aload 0
aload 2
invokestatic sun.security.ssl.Record.getBytes16:(Ljava/nio/ByteBuffer;)[B
putfield sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage.signature:[B
7: aconst_null
astore 4
start local 4 8: aload 3
getfield sun.security.ssl.ServerHandshakeContext.handshakeCredentials:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 13
StackMap locals: sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage sun.security.ssl.HandshakeContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.X509Authentication$X509Credentials top java.util.Iterator
StackMap stack:
9: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast sun.security.ssl.SSLCredentials
astore 5
start local 5 10: aload 5
instanceof sun.security.ssl.X509Authentication$X509Credentials
ifeq 13
11: aload 5
checkcast sun.security.ssl.X509Authentication$X509Credentials
astore 4
12: goto 14
end local 5 13: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
14: StackMap locals: sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage sun.security.ssl.HandshakeContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.X509Authentication$X509Credentials
StackMap stack:
aload 4
ifnull 16
15: aload 4
getfield sun.security.ssl.X509Authentication$X509Credentials.popPublicKey:Ljava/security/PublicKey;
ifnonnull 19
16: StackMap locals:
StackMap stack:
aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.HANDSHAKE_FAILURE:Lsun/security/ssl/Alert;
17: ldc "No X509 credentials negotiated for CertificateVerify"
18: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
19: StackMap locals:
StackMap stack:
aload 4
getfield sun.security.ssl.X509Authentication$X509Credentials.popPublicKey:Ljava/security/PublicKey;
invokeinterface java.security.PublicKey.getAlgorithm:()Ljava/lang/String;
astore 5
start local 5 20: aload 5
aload 4
getfield sun.security.ssl.X509Authentication$X509Credentials.popPublicKey:Ljava/security/PublicKey;
invokestatic sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage.getSignature:(Ljava/lang/String;Ljava/security/Key;)Ljava/security/Signature;
21: astore 6
start local 6 22: aload 3
getfield sun.security.ssl.ServerHandshakeContext.handshakeHash:Lsun/security/ssl/HandshakeHash;
aload 5
23: aload 3
getfield sun.security.ssl.ServerHandshakeContext.handshakeSession:Lsun/security/ssl/SSLSessionImpl;
invokevirtual sun.security.ssl.SSLSessionImpl.getMasterSecret:()Ljavax/crypto/SecretKey;
24: invokevirtual sun.security.ssl.HandshakeHash.digest:(Ljava/lang/String;Ljavax/crypto/SecretKey;)[B
astore 7
start local 7 25: aload 6
aload 7
invokevirtual java.security.Signature.update:([B)V
26: aload 6
aload 0
getfield sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage.signature:[B
invokevirtual java.security.Signature.verify:([B)Z
ifne 41
27: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.HANDSHAKE_FAILURE:Lsun/security/ssl/Alert;
28: ldc "Invalid CertificateVerify message: invalid signature"
29: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;)Ljavax/net/ssl/SSLException;
athrow
end local 7 end local 6 30: StackMap locals: sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage sun.security.ssl.HandshakeContext java.nio.ByteBuffer sun.security.ssl.ServerHandshakeContext sun.security.ssl.X509Authentication$X509Credentials java.lang.String
StackMap stack: java.security.NoSuchAlgorithmException
astore 6
start local 6 31: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.INTERNAL_ERROR:Lsun/security/ssl/Alert;
32: new java.lang.StringBuilder
dup
ldc "Unsupported signature algorithm ("
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
33: ldc ") used in CertificateVerify handshake message"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
34: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
35: aload 6
36: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;Ljava/lang/Throwable;)Ljavax/net/ssl/SSLException;
athrow
end local 6 37: StackMap locals:
StackMap stack: java.security.GeneralSecurityException
astore 6
start local 6 38: aload 3
getfield sun.security.ssl.ServerHandshakeContext.conContext:Lsun/security/ssl/TransportContext;
getstatic sun.security.ssl.Alert.HANDSHAKE_FAILURE:Lsun/security/ssl/Alert;
39: ldc "Cannot verify CertificateVerify signature"
aload 6
40: invokevirtual sun.security.ssl.TransportContext.fatal:(Lsun/security/ssl/Alert;Ljava/lang/String;Ljava/lang/Throwable;)Ljavax/net/ssl/SSLException;
athrow
end local 6 41: StackMap locals:
StackMap stack:
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 42 0 this Lsun/security/ssl/CertificateVerify$S30CertificateVerifyMessage;
0 42 1 context Lsun/security/ssl/HandshakeContext;
0 42 2 m Ljava/nio/ByteBuffer;
2 42 3 shc Lsun/security/ssl/ServerHandshakeContext;
8 42 4 x509Credentials Lsun/security/ssl/X509Authentication$X509Credentials;
10 13 5 cd Lsun/security/ssl/SSLCredentials;
20 42 5 algorithm Ljava/lang/String;
22 30 6 signer Ljava/security/Signature;
25 30 7 hashes [B
31 37 6 nsae Ljava/security/NoSuchAlgorithmException;
38 41 6 gse Ljava/security/GeneralSecurityException;
Exception table:
from to target type
20 30 30 Class java.security.NoSuchAlgorithmException
20 30 37 Class java.security.GeneralSecurityException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
context
m
public sun.security.ssl.SSLHandshake handshakeType();
descriptor: ()Lsun/security/ssl/SSLHandshake;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic sun.security.ssl.SSLHandshake.CERTIFICATE_VERIFY:Lsun/security/ssl/SSLHandshake;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/CertificateVerify$S30CertificateVerifyMessage;
public int messageLength();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: iconst_2
aload 0
getfield sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage.signature:[B
arraylength
iadd
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ssl/CertificateVerify$S30CertificateVerifyMessage;
public void send(sun.security.ssl.HandshakeOutStream);
descriptor: (Lsun/security/ssl/HandshakeOutStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage.signature:[B
invokevirtual sun.security.ssl.HandshakeOutStream.putBytes16:([B)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lsun/security/ssl/CertificateVerify$S30CertificateVerifyMessage;
0 2 1 hos Lsun/security/ssl/HandshakeOutStream;
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
hos
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: new java.text.MessageFormat
dup
1: ldc "\"CertificateVerify\": '{'\n \"signature\": '{'\n{0}\n '}'\n'}'"
2: getstatic java.util.Locale.ENGLISH:Ljava/util/Locale;
3: invokespecial java.text.MessageFormat.<init>:(Ljava/lang/String;Ljava/util/Locale;)V
astore 1
start local 1 4: new sun.security.util.HexDumpEncoder
dup
invokespecial sun.security.util.HexDumpEncoder.<init>:()V
astore 2
start local 2 5: iconst_1
anewarray java.lang.Object
dup
iconst_0
6: aload 2
aload 0
getfield sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage.signature:[B
invokevirtual sun.security.util.HexDumpEncoder.encodeBuffer:([B)Ljava/lang/String;
ldc " "
7: invokestatic sun.security.ssl.Utilities.indent:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
aastore
8: astore 3
start local 3 9: aload 1
aload 3
invokevirtual java.text.MessageFormat.format:(Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/security/ssl/CertificateVerify$S30CertificateVerifyMessage;
4 10 1 messageFormat Ljava/text/MessageFormat;
5 10 2 hexEncoder Lsun/security/util/HexDumpEncoder;
9 10 3 messageFields [Ljava/lang/Object;
private static java.security.Signature getSignature(java.lang.String, java.security.Key);
descriptor: (Ljava/lang/String;Ljava/security/Key;)Ljava/security/Signature;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=4, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
start local 2 1: aload 0
dup
astore 3
invokevirtual java.lang.String.hashCode:()I
lookupswitch { // 3
2206: 2
67986: 3
81440: 4
default: 11
}
StackMap locals: java.security.Signature java.lang.String
StackMap stack:
2: aload 3
ldc "EC"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 9
goto 11
StackMap locals:
StackMap stack:
3: aload 3
ldc "DSA"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 7
goto 11
StackMap locals:
StackMap stack:
4: aload 3
ldc "RSA"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
goto 11
5: StackMap locals:
StackMap stack:
ldc "NONEwithRSA"
invokestatic java.security.Signature.getInstance:(Ljava/lang/String;)Ljava/security/Signature;
astore 2
6: goto 14
7: StackMap locals:
StackMap stack:
ldc "RawDSA"
invokestatic java.security.Signature.getInstance:(Ljava/lang/String;)Ljava/security/Signature;
astore 2
8: goto 14
9: StackMap locals:
StackMap stack:
ldc "NONEwithECDSA"
invokestatic java.security.Signature.getInstance:(Ljava/lang/String;)Ljava/security/Signature;
astore 2
10: goto 14
11: StackMap locals:
StackMap stack:
new java.security.SignatureException
dup
new java.lang.StringBuilder
dup
ldc "Unrecognized algorithm: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
12: aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
13: invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals:
StackMap stack:
aload 2
ifnull 19
15: aload 1
instanceof java.security.PublicKey
ifeq 18
16: aload 2
aload 1
checkcast java.security.PublicKey
invokevirtual java.security.Signature.initVerify:(Ljava/security/PublicKey;)V
17: goto 19
18: StackMap locals:
StackMap stack:
aload 2
aload 1
checkcast java.security.PrivateKey
invokevirtual java.security.Signature.initSign:(Ljava/security/PrivateKey;)V
19: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 algorithm Ljava/lang/String;
0 20 1 key Ljava/security/Key;
1 20 2 signer Ljava/security/Signature;
Exceptions:
throws java.security.GeneralSecurityException
MethodParameters:
Name Flags
algorithm
key
}
SourceFile: "CertificateVerify.java"
NestHost: sun.security.ssl.CertificateVerify
InnerClasses:
final S30CertificateVerifyMessage = sun.security.ssl.CertificateVerify$S30CertificateVerifyMessage of sun.security.ssl.CertificateVerify
abstract HandshakeMessage = sun.security.ssl.SSLHandshake$HandshakeMessage of sun.security.ssl.SSLHandshake
final X509Credentials = sun.security.ssl.X509Authentication$X509Credentials of sun.security.ssl.X509Authentication
final X509Possession = sun.security.ssl.X509Authentication$X509Possession of sun.security.ssl.X509Authentication