public final class sun.security.ec.XDHPrivateKeyImpl extends sun.security.pkcs.PKCS8Key implements java.security.interfaces.XECPrivateKey
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: sun.security.ec.XDHPrivateKeyImpl
super_class: sun.security.pkcs.PKCS8Key
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private final java.security.spec.AlgorithmParameterSpec paramSpec;
descriptor: Ljava/security/spec/AlgorithmParameterSpec;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private byte[] k;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
void <init>(sun.security.ec.XECParameters, byte[]);
descriptor: (Lsun/security/ec/XECParameters;[B)V
flags: (0x0000)
Code:
stack=4, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial sun.security.pkcs.PKCS8Key.<init>:()V
1: aload 0
new java.security.spec.NamedParameterSpec
dup
aload 1
invokevirtual sun.security.ec.XECParameters.getName:()Ljava/lang/String;
invokespecial java.security.spec.NamedParameterSpec.<init>:(Ljava/lang/String;)V
putfield sun.security.ec.XDHPrivateKeyImpl.paramSpec:Ljava/security/spec/AlgorithmParameterSpec;
2: aload 0
aload 2
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
putfield sun.security.ec.XDHPrivateKeyImpl.k:[B
3: aload 0
new sun.security.x509.AlgorithmId
dup
aload 1
invokevirtual sun.security.ec.XECParameters.getOid:()Lsun/security/util/ObjectIdentifier;
invokespecial sun.security.x509.AlgorithmId.<init>:(Lsun/security/util/ObjectIdentifier;)V
putfield sun.security.ec.XDHPrivateKeyImpl.algid:Lsun/security/x509/AlgorithmId;
4: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 3
start local 3 5: aload 3
aload 2
invokevirtual sun.security.util.DerOutputStream.putOctetString:([B)V
6: aload 0
aload 3
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
putfield sun.security.ec.XDHPrivateKeyImpl.key:[B
7: goto 10
StackMap locals: sun.security.ec.XDHPrivateKeyImpl sun.security.ec.XECParameters byte[] sun.security.util.DerOutputStream
StackMap stack: java.io.IOException
8: astore 4
start local 4 9: new java.lang.AssertionError
dup
ldc "Should not happen"
aload 4
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 4 10: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.security.ec.XDHPrivateKeyImpl.checkLength:(Lsun/security/ec/XECParameters;)V
11: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lsun/security/ec/XDHPrivateKeyImpl;
0 12 1 params Lsun/security/ec/XECParameters;
0 12 2 k [B
5 12 3 derKey Lsun/security/util/DerOutputStream;
9 10 4 ex Ljava/io/IOException;
Exception table:
from to target type
5 7 8 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
params
k
void <init>(byte[]);
descriptor: ([B)V
flags: (0x0000)
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial sun.security.pkcs.PKCS8Key.<init>:([B)V
1: invokedynamic apply()Ljava/util/function/Function;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)Ljava/lang/Object;
java/security/InvalidKeyException.<init>(Ljava/lang/String;)V (8)
(Ljava/lang/String;)Ljava/security/InvalidKeyException;
aload 0
getfield sun.security.ec.XDHPrivateKeyImpl.algid:Lsun/security/x509/AlgorithmId;
2: invokestatic sun.security.ec.XECParameters.get:(Ljava/util/function/Function;Lsun/security/x509/AlgorithmId;)Lsun/security/ec/XECParameters;
astore 2
start local 2 3: aload 0
new java.security.spec.NamedParameterSpec
dup
aload 2
invokevirtual sun.security.ec.XECParameters.getName:()Ljava/lang/String;
invokespecial java.security.spec.NamedParameterSpec.<init>:(Ljava/lang/String;)V
putfield sun.security.ec.XDHPrivateKeyImpl.paramSpec:Ljava/security/spec/AlgorithmParameterSpec;
4: new sun.security.util.DerInputStream
dup
aload 0
getfield sun.security.ec.XDHPrivateKeyImpl.key:[B
invokespecial sun.security.util.DerInputStream.<init>:([B)V
astore 3
start local 3 5: aload 0
aload 3
invokevirtual sun.security.util.DerInputStream.getOctetString:()[B
putfield sun.security.ec.XDHPrivateKeyImpl.k:[B
end local 3 6: goto 9
StackMap locals: sun.security.ec.XDHPrivateKeyImpl byte[] sun.security.ec.XECParameters
StackMap stack: java.io.IOException
7: astore 3
start local 3 8: new java.security.InvalidKeyException
dup
aload 3
invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 9: StackMap locals:
StackMap stack:
aload 0
aload 2
invokevirtual sun.security.ec.XDHPrivateKeyImpl.checkLength:(Lsun/security/ec/XECParameters;)V
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lsun/security/ec/XDHPrivateKeyImpl;
0 11 1 encoded [B
3 11 2 params Lsun/security/ec/XECParameters;
5 6 3 derStream Lsun/security/util/DerInputStream;
8 9 3 ex Ljava/io/IOException;
Exception table:
from to target type
4 6 7 Class java.io.IOException
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
encoded
void checkLength(sun.security.ec.XECParameters);
descriptor: (Lsun/security/ec/XECParameters;)V
flags: (0x0000)
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual sun.security.ec.XECParameters.getBytes:()I
aload 0
getfield sun.security.ec.XDHPrivateKeyImpl.k:[B
arraylength
if_icmpeq 4
1: new java.security.InvalidKeyException
dup
2: new java.lang.StringBuilder
dup
ldc "key length must be "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual sun.security.ec.XECParameters.getBytes:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
3: invokespecial java.security.InvalidKeyException.<init>:(Ljava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lsun/security/ec/XDHPrivateKeyImpl;
0 5 1 params Lsun/security/ec/XECParameters;
Exceptions:
throws java.security.InvalidKeyException
MethodParameters:
Name Flags
params
public byte[] getK();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ec.XDHPrivateKeyImpl.k:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/XDHPrivateKeyImpl;
public java.lang.String getAlgorithm();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: ldc "XDH"
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/XDHPrivateKeyImpl;
public java.security.spec.AlgorithmParameterSpec getParams();
descriptor: ()Ljava/security/spec/AlgorithmParameterSpec;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.ec.XDHPrivateKeyImpl.paramSpec:Ljava/security/spec/AlgorithmParameterSpec;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/XDHPrivateKeyImpl;
public java.util.Optional<byte[]> getScalar();
descriptor: ()Ljava/util/Optional;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual sun.security.ec.XDHPrivateKeyImpl.getK:()[B
invokestatic java.util.Optional.of:(Ljava/lang/Object;)Ljava/util/Optional;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/ec/XDHPrivateKeyImpl;
Signature: ()Ljava/util/Optional<[B>;
}
SourceFile: "XDHPrivateKeyImpl.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles