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 java.lang.String sigAlg;
descriptor: Ljava/lang/String;
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 0
aload 4
invokevirtual sun.security.x509.AlgorithmId.getName:()Ljava/lang/String;
putfield sun.security.pkcs10.PKCS10.sigAlg:Ljava/lang/String;
20: aload 0
getfield sun.security.pkcs10.PKCS10.sigAlg:Ljava/lang/String;
invokestatic java.security.Signature.getInstance:(Ljava/lang/String;)Ljava/security/Signature;
astore 6
start local 6 21: aload 6
aload 0
getfield sun.security.pkcs10.PKCS10.subjectPublicKeyInfo:Ljava/security/PublicKey;
invokevirtual java.security.Signature.initVerify:(Ljava/security/PublicKey;)V
22: aload 6
aload 1
invokevirtual java.security.Signature.update:([B)V
23: aload 6
aload 5
invokevirtual java.security.Signature.verify:([B)Z
ifne 27
24: new java.security.SignatureException
dup
ldc "Invalid PKCS #10 signature"
invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;)V
athrow
end local 6 25: StackMap locals:
StackMap stack: java.security.InvalidKeyException
pop
26: new java.security.SignatureException
dup
ldc "invalid key"
invokespecial java.security.SignatureException.<init>:(Ljava/lang/String;)V
athrow
start local 6 27: 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 28 0 this Lsun/security/pkcs10/PKCS10;
0 28 1 data [B
3 28 2 in Lsun/security/util/DerInputStream;
4 28 3 seq [Lsun/security/util/DerValue;
8 28 4 id Lsun/security/x509/AlgorithmId;
9 28 5 sigData [B
21 25 6 sig Ljava/security/Signature;
27 28 6 sig Ljava/security/Signature;
10 28 7 serial Ljava/math/BigInteger;
Exception table:
from to target type
19 25 25 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.X500Name, java.security.Signature);
descriptor: (Lsun/security/x509/X500Name;Ljava/security/Signature;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=9, args_size=3
start local 0 start local 1 start local 2 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
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 4
start local 4 4: aload 4
getstatic java.math.BigInteger.ZERO:Ljava/math/BigInteger;
invokevirtual sun.security.util.DerOutputStream.putInteger:(Ljava/math/BigInteger;)V
5: aload 1
aload 4
invokevirtual sun.security.x509.X500Name.encode:(Lsun/security/util/DerOutputStream;)V
6: aload 4
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 4
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 3
start local 3 9: aload 3
bipush 48
aload 4
invokevirtual sun.security.util.DerOutputStream.write:(BLsun/security/util/DerOutputStream;)V
10: aload 3
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
astore 5
start local 5 11: aload 3
astore 4
12: aload 2
aload 5
iconst_0
13: aload 5
arraylength
14: invokevirtual java.security.Signature.update:([BII)V
15: aload 2
invokevirtual java.security.Signature.sign:()[B
astore 6
start local 6 16: aload 0
aload 2
invokevirtual java.security.Signature.getAlgorithm:()Ljava/lang/String;
putfield sun.security.pkcs10.PKCS10.sigAlg:Ljava/lang/String;
17: aconst_null
astore 7
start local 7 18: aload 2
invokevirtual java.security.Signature.getAlgorithm:()Ljava/lang/String;
invokestatic sun.security.x509.AlgorithmId.get:(Ljava/lang/String;)Lsun/security/x509/AlgorithmId;
astore 7
19: goto 22
StackMap locals: sun.security.pkcs10.PKCS10 sun.security.x509.X500Name java.security.Signature sun.security.util.DerOutputStream sun.security.util.DerOutputStream byte[] byte[] sun.security.x509.AlgorithmId
StackMap stack: java.security.NoSuchAlgorithmException
20: astore 8
start local 8 21: new java.security.SignatureException
dup
aload 8
invokespecial java.security.SignatureException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 8 22: StackMap locals:
StackMap stack:
aload 7
aload 4
invokevirtual sun.security.x509.AlgorithmId.encode:(Lsun/security/util/DerOutputStream;)V
23: aload 4
aload 6
invokevirtual sun.security.util.DerOutputStream.putBitString:([B)V
24: new sun.security.util.DerOutputStream
dup
invokespecial sun.security.util.DerOutputStream.<init>:()V
astore 3
25: aload 3
bipush 48
aload 4
invokevirtual sun.security.util.DerOutputStream.write:(BLsun/security/util/DerOutputStream;)V
26: aload 0
aload 3
invokevirtual sun.security.util.DerOutputStream.toByteArray:()[B
putfield sun.security.pkcs10.PKCS10.encoded:[B
27: 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 28 0 this Lsun/security/pkcs10/PKCS10;
0 28 1 subject Lsun/security/x509/X500Name;
0 28 2 signature Ljava/security/Signature;
9 28 3 out Lsun/security/util/DerOutputStream;
4 28 4 scratch Lsun/security/util/DerOutputStream;
11 28 5 certificateRequestInfo [B
16 28 6 sig [B
18 28 7 algId Lsun/security/x509/AlgorithmId;
21 22 8 nsae Ljava/security/NoSuchAlgorithmException;
Exception table:
from to target type
18 19 20 Class java.security.NoSuchAlgorithmException
Exceptions:
throws java.security.cert.CertificateException, java.io.IOException, java.security.SignatureException
MethodParameters:
Name Flags
subject
signature
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 java.lang.String getSigAlg();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield sun.security.pkcs10.PKCS10.sigAlg:Ljava/lang/String;
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"