public class sun.security.pkcs10.PKCS10
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: sun.security.pkcs10.PKCS10
super_class: java.lang.Object
{
private sun.security.x509.X500Name subject;
descriptor: Lsun/security/x509/X500Name;
flags: (0x0002) ACC_PRIVATE
private java.security.PublicKey subjectPublicKeyInfo;
descriptor: Ljava/security/PublicKey;
flags: (0x0002) ACC_PRIVATE
private sun.security.pkcs10.PKCS10Attributes attributeSet;
descriptor: Lsun/security/pkcs10/PKCS10Attributes;
flags: (0x0002) ACC_PRIVATE
private byte[] encoded;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
public void <init>(java.security.PublicKey);
descriptor: (Ljava/security/PublicKey;)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
aload 1
putfield sun.security.pkcs10.PKCS10.subjectPublicKeyInfo:Ljava/security/PublicKey;
2: aload 0
new sun.security.pkcs10.PKCS10Attributes
dup
invokespecial sun.security.pkcs10.PKCS10Attributes.<init>:()V
putfield sun.security.pkcs10.PKCS10.attributeSet:Lsun/security/pkcs10/PKCS10Attributes;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/pkcs10/PKCS10;
0 4 1 publicKey Ljava/security/PublicKey;
MethodParameters:
Name Flags
publicKey
public void <init>(java.security.PublicKey, sun.security.pkcs10.PKCS10Attributes);
descriptor: (Ljava/security/PublicKey;Lsun/security/pkcs10/PKCS10Attributes;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.security.pkcs10.PKCS10.subjectPublicKeyInfo:Ljava/security/PublicKey;
2: aload 0
aload 2
putfield sun.security.pkcs10.PKCS10.attributeSet:Lsun/security/pkcs10/PKCS10Attributes;
3: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lsun/security/pkcs10/PKCS10;
0 4 1 publicKey Ljava/security/PublicKey;
0 4 2 attributes Lsun/security/pkcs10/PKCS10Attributes;
MethodParameters:
Name Flags
publicKey
attributes
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=8, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield sun.security.pkcs10.PKCS10.encoded:[B
2: new sun.security.util.DerInputStream
dup
aload 1
invokespecial sun.security.util.DerInputStream.<init>:([B)V
astore 2
start local 2 3: aload 2
iconst_3
invokevirtual sun.security.util.DerInputStream.getSequence:(I)[Lsun/security/util/DerValue;
astore 3
start local 3 4: aload 3
arraylength
iconst_3
if_icmpeq 6
5: new java.lang.IllegalArgumentException
dup
ldc "not a PKCS #10 request"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: sun.security.pkcs10.PKCS10 byte[] sun.security.util.DerInputStream sun.security.util.DerValue[]
StackMap stack:
aload 3
iconst_0
aaload
invokevirtual sun.security.util.DerValue.toByteArray:()[B
astore 1
7: aload 3
iconst_1
aaload
invokestatic sun.security.x509.AlgorithmId.parse:(Lsun/security/util/DerValue;)Lsun/security/x509/AlgorithmId;
astore 4
start local 4 8: aload 3
iconst_2
aaload
invokevirtual sun.security.util.DerValue.getBitString:()[B
astore 5
start local 5 9: aload 3
iconst_0
aaload
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.getBigInteger:()Ljava/math/BigInteger;
astore 7
start local 7 10: aload 7
getstatic java.math.BigInteger.ZERO:Ljava/math/BigInteger;
invokevirtual java.math.BigInteger.equals:(Ljava/lang/Object;)Z
ifne 12
11: new java.lang.IllegalArgumentException
dup
ldc "not PKCS #10 v1"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
12: StackMap locals: sun.security.pkcs10.PKCS10 byte[] sun.security.util.DerInputStream sun.security.util.DerValue[] sun.security.x509.AlgorithmId byte[] top java.math.BigInteger
StackMap stack:
aload 0
new sun.security.x509.X500Name
dup
aload 3
iconst_0
aaload
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokespecial sun.security.x509.X500Name.<init>:(Lsun/security/util/DerInputStream;)V
putfield sun.security.pkcs10.PKCS10.subject:Lsun/security/x509/X500Name;
13: aload 0
aload 3
iconst_0
aaload
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.getDerValue:()Lsun/security/util/DerValue;
invokestatic sun.security.x509.X509Key.parse:(Lsun/security/util/DerValue;)Ljava/security/PublicKey;
putfield sun.security.pkcs10.PKCS10.subjectPublicKeyInfo:Ljava/security/PublicKey;
14: aload 3
iconst_0
aaload
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.available:()I
ifeq 16
15: aload 0
new sun.security.pkcs10.PKCS10Attributes
dup
aload 3
iconst_0
aaload
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokespecial sun.security.pkcs10.PKCS10Attributes.<init>:(Lsun/security/util/DerInputStream;)V
putfield sun.security.pkcs10.PKCS10.attributeSet:Lsun/security/pkcs10/PKCS10Attributes;
goto 17
16: StackMap locals:
StackMap stack:
aload 0
new sun.security.pkcs10.PKCS10Attributes
dup
invokespecial sun.security.pkcs10.PKCS10Attributes.<init>:()V
putfield sun.security.pkcs10.PKCS10.attributeSet:Lsun/security/pkcs10/PKCS10Attributes;
17: StackMap locals:
StackMap stack:
aload 3
iconst_0
aaload
getfield sun.security.util.DerValue.data:Lsun/security/util/DerInputStream;
invokevirtual sun.security.util.DerInputStream.available:()I
ifeq 19
18: new java.lang.IllegalArgumentException
dup
ldc "illegal PKCS #10 data"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
19: StackMap locals:
StackMap stack:
aload 4
invokevirtual sun.security.x509.AlgorithmId.getName:()Ljava/lang/String;
invokestatic java.security.Signature.getInstance:(Ljava/lang/String;)Ljava/security/Signature;
astore 6
start local 6 20: aload 6
aload 0
getfield sun.security.pkcs10.PKCS10.subjectPublicKeyInfo:Ljava/security/PublicKey;
invokevirtual java.security.Signature.initVerify:(Ljava/security/PublicKey;)V
21: aload 6
aload 1
invokevirtual java.security.Signature.update:([B)V
22: aload 6
aload 5
invokevirtual java.security.Signature.verify:([B)Z
ifne 26
23: new java.security.SignatureException
dup
ldc "Invalid PKCS #10 signature"
invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;)V
athrow
end local 6 24: StackMap locals:
StackMap stack: java.security.InvalidKeyException
pop
25: new java.security.SignatureException
dup
ldc "invalid key"
invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;)V
athrow
start local 6 26: StackMap locals: sun.security.pkcs10.PKCS10 byte[] sun.security.util.DerInputStream sun.security.util.DerValue[] sun.security.x509.AlgorithmId byte[] java.security.Signature java.math.BigInteger
StackMap stack:
return
end local 7 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 27 0 this Lsun/security/pkcs10/PKCS10;
0 27 1 data [B
3 27 2 in Lsun/security/util/DerInputStream;
4 27 3 seq [Lsun/security/util/DerValue;
8 27 4 id Lsun/security/x509/AlgorithmId;
9 27 5 sigData [B
20 24 6 sig Ljava/security/Signature;
26 27 6 sig Ljava/security/Signature;
10 27 7 serial Ljava/math/BigInteger;
Exception table:
from to target type
19 24 24 Class java.security.InvalidKeyException
Exceptions:
throws java.io.IOException, java.security.SignatureException, java.security.NoSuchAlgorithmException
MethodParameters:
Name Flags
data
public void encodeAndSign(sun.security.x509.X500Signer);
descriptor: (Lsun/security/x509/X500Signer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=6, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.pkcs10.PKCS10.encoded:[B
ifnull 2
1: new java.security.SignatureException
dup
ldc "request is already signed"
invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual sun.security.x509.X500Signer.getSigner:()Lsun/security/x509/X500Name;
putfield sun.security.pkcs10.PKCS10.subject:Lsun/security/x509/X500Name;
3: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 3
start local 3 4: aload 3
getstatic java.math.BigInteger.ZERO:Ljava/math/BigInteger;
invokevirtual sun.security.util.DerOutputStream.putInteger:(Ljava/math/BigInteger;)V
5: aload 0
getfield sun.security.pkcs10.PKCS10.subject:Lsun/security/x509/X500Name;
aload 3
invokevirtual sun.security.x509.X500Name.encode:(Lsun/security/util/DerOutputStream;)V
6: aload 3
aload 0
getfield sun.security.pkcs10.PKCS10.subjectPublicKeyInfo:Ljava/security/PublicKey;
invokeinterface java.security.PublicKey.getEncoded:()[B
invokevirtual sun.security.util.DerOutputStream.write:([B)V
7: aload 0
getfield sun.security.pkcs10.PKCS10.attributeSet:Lsun/security/pkcs10/PKCS10Attributes;
aload 3
invokevirtual sun.security.pkcs10.PKCS10Attributes.encode:(Ljava/io/OutputStream;)V
8: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 2
start local 2 9: aload 2
bipush 48
aload 3
invokevirtual sun.security.util.DerOutputStream.write:(BLsun/security/util/DerOutputStream;)V
10: aload 2
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
astore 4
start local 4 11: aload 2
astore 3
12: aload 1
aload 4
iconst_0
13: aload 4
arraylength
14: invokevirtual sun.security.x509.X500Signer.update:([BII)V
15: aload 1
invokevirtual sun.security.x509.X500Signer.sign:()[B
astore 5
start local 5 16: aload 1
invokevirtual sun.security.x509.X500Signer.getAlgorithmId:()Lsun/security/x509/AlgorithmId;
aload 3
invokevirtual sun.security.x509.AlgorithmId.encode:(Lsun/security/util/DerOutputStream;)V
17: aload 3
aload 5
invokevirtual sun.security.util.DerOutputStream.putBitString:([B)V
18: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 2
19: aload 2
bipush 48
aload 3
invokevirtual sun.security.util.DerOutputStream.write:(BLsun/security/util/DerOutputStream;)V
20: aload 0
aload 2
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
putfield sun.security.pkcs10.PKCS10.encoded:[B
21: 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 22 0 this Lsun/security/pkcs10/PKCS10;
0 22 1 requester Lsun/security/x509/X500Signer;
9 22 2 out Lsun/security/util/DerOutputStream;
4 22 3 scratch Lsun/security/util/DerOutputStream;
11 22 4 certificateRequestInfo [B
16 22 5 sig [B
Exceptions:
throws java.security.cert.CertificateException, java.io.IOException, java.security.SignatureException
MethodParameters:
Name Flags
requester
public sun.security.x509.X500Name getSubjectName();
descriptor: ()Lsun/security/x509/X500Name;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs10.PKCS10.subject:Lsun/security/x509/X500Name;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs10/PKCS10;
public java.security.PublicKey getSubjectPublicKeyInfo();
descriptor: ()Ljava/security/PublicKey;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs10.PKCS10.subjectPublicKeyInfo:Ljava/security/PublicKey;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs10/PKCS10;
public sun.security.pkcs10.PKCS10Attributes getAttributes();
descriptor: ()Lsun/security/pkcs10/PKCS10Attributes;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs10.PKCS10.attributeSet:Lsun/security/pkcs10/PKCS10Attributes;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lsun/security/pkcs10/PKCS10;
public byte[] getEncoded();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs10.PKCS10.encoded:[B
ifnull 2
1: aload 0
getfield sun.security.pkcs10.PKCS10.encoded:[B
invokevirtual byte[].clone:()Ljava/lang/Object;
checkcast byte[]
areturn
2: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lsun/security/pkcs10/PKCS10;
public void print(java.io.PrintStream);
descriptor: (Ljava/io/PrintStream;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield sun.security.pkcs10.PKCS10.encoded:[B
ifnonnull 2
1: new java.security.SignatureException
dup
ldc "Cert request was not signed"
invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
new sun.misc.BASE64Encoder
dup
invokespecial sun.misc.BASE64Encoder.<init>:()V
astore 2
start local 2 3: aload 1
ldc "-----BEGIN NEW CERTIFICATE REQUEST-----"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: aload 2
aload 0
getfield sun.security.pkcs10.PKCS10.encoded:[B
aload 1
invokevirtual sun.misc.BASE64Encoder.encodeBuffer:([BLjava/io/OutputStream;)V
5: aload 1
ldc "-----END NEW CERTIFICATE REQUEST-----"
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lsun/security/pkcs10/PKCS10;
0 7 1 out Ljava/io/PrintStream;
3 7 2 encoder Lsun/misc/BASE64Encoder;
Exceptions:
throws java.io.IOException, java.security.SignatureException
MethodParameters:
Name Flags
out
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "[PKCS #10 certificate request:\n"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
1: aload 0
getfield sun.security.pkcs10.PKCS10.subjectPublicKeyInfo:Ljava/security/PublicKey;
invokevirtual java.lang.Object.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
2: ldc " subject: <"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.pkcs10.PKCS10.subject:Lsun/security/x509/X500Name;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ">"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: ldc " attributes: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield sun.security.pkcs10.PKCS10.attributeSet:Lsun/security/pkcs10/PKCS10Attributes;
invokevirtual sun.security.pkcs10.PKCS10Attributes.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: ldc "\n]"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lsun/security/pkcs10/PKCS10;
public boolean equals(java.lang.Object);
descriptor: (Ljava/lang/Object;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
aload 1
if_acmpne 2
1: iconst_1
ireturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof sun.security.pkcs10.PKCS10
ifne 4
3: iconst_0
ireturn
4: StackMap locals:
StackMap stack:
aload 0
getfield sun.security.pkcs10.PKCS10.encoded:[B
ifnonnull 6
5: iconst_0
ireturn
6: StackMap locals:
StackMap stack:
aload 1
checkcast sun.security.pkcs10.PKCS10
invokevirtual sun.security.pkcs10.PKCS10.getEncoded:()[B
astore 2
start local 2 7: aload 2
ifnonnull 9
8: iconst_0
ireturn
9: StackMap locals: byte[]
StackMap stack:
aload 0
getfield sun.security.pkcs10.PKCS10.encoded:[B
aload 2
invokestatic java.util.Arrays.equals:([B[B)Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lsun/security/pkcs10/PKCS10;
0 10 1 other Ljava/lang/Object;
7 10 2 otherEncoded [B
MethodParameters:
Name Flags
other
public int hashCode();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: aload 0
getfield sun.security.pkcs10.PKCS10.encoded:[B
ifnull 7
2: iconst_1
istore 2
start local 2 3: goto 6
4: StackMap locals: int int
StackMap stack:
iload 1
aload 0
getfield sun.security.pkcs10.PKCS10.encoded:[B
iload 2
baload
iload 2
imul
iadd
istore 1
5: iinc 2 1
StackMap locals:
StackMap stack:
6: iload 2
aload 0
getfield sun.security.pkcs10.PKCS10.encoded:[B
arraylength
if_icmplt 4
end local 2 7: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lsun/security/pkcs10/PKCS10;
1 8 1 retval I
3 7 2 i I
}
SourceFile: "PKCS10.java"