public class org.bouncycastle.asn1.x509.SubjectKeyIdentifier extends org.bouncycastle.asn1.ASN1Encodable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.bouncycastle.asn1.x509.SubjectKeyIdentifier
super_class: org.bouncycastle.asn1.ASN1Encodable
{
private byte[] keyidentifier;
descriptor: [B
flags: (0x0002) ACC_PRIVATE
public static org.bouncycastle.asn1.x509.SubjectKeyIdentifier getInstance(org.bouncycastle.asn1.ASN1TaggedObject, boolean);
descriptor: (Lorg/bouncycastle/asn1/ASN1TaggedObject;Z)Lorg/bouncycastle/asn1/x509/SubjectKeyIdentifier;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic org.bouncycastle.asn1.ASN1OctetString.getInstance:(Lorg/bouncycastle/asn1/ASN1TaggedObject;Z)Lorg/bouncycastle/asn1/ASN1OctetString;
invokestatic org.bouncycastle.asn1.x509.SubjectKeyIdentifier.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/x509/SubjectKeyIdentifier;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 obj Lorg/bouncycastle/asn1/ASN1TaggedObject;
0 1 1 explicit Z
MethodParameters:
Name Flags
obj
explicit
public static org.bouncycastle.asn1.x509.SubjectKeyIdentifier getInstance(java.lang.Object);
descriptor: (Ljava/lang/Object;)Lorg/bouncycastle/asn1/x509/SubjectKeyIdentifier;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.bouncycastle.asn1.x509.SubjectKeyIdentifier
ifeq 2
1: aload 0
checkcast org.bouncycastle.asn1.x509.SubjectKeyIdentifier
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof org.bouncycastle.asn1.x509.SubjectPublicKeyInfo
ifeq 4
3: new org.bouncycastle.asn1.x509.SubjectKeyIdentifier
dup
aload 0
checkcast org.bouncycastle.asn1.x509.SubjectPublicKeyInfo
invokespecial org.bouncycastle.asn1.x509.SubjectKeyIdentifier.<init>:(Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)V
areturn
4: StackMap locals:
StackMap stack:
aload 0
instanceof org.bouncycastle.asn1.ASN1OctetString
ifeq 6
5: new org.bouncycastle.asn1.x509.SubjectKeyIdentifier
dup
aload 0
checkcast org.bouncycastle.asn1.ASN1OctetString
invokespecial org.bouncycastle.asn1.x509.SubjectKeyIdentifier.<init>:(Lorg/bouncycastle/asn1/ASN1OctetString;)V
areturn
6: StackMap locals:
StackMap stack:
aload 0
instanceof org.bouncycastle.asn1.x509.X509Extension
ifeq 8
7: aload 0
checkcast org.bouncycastle.asn1.x509.X509Extension
invokestatic org.bouncycastle.asn1.x509.X509Extension.convertValueToObject:(Lorg/bouncycastle/asn1/x509/X509Extension;)Lorg/bouncycastle/asn1/ASN1Object;
invokestatic org.bouncycastle.asn1.x509.SubjectKeyIdentifier.getInstance:(Ljava/lang/Object;)Lorg/bouncycastle/asn1/x509/SubjectKeyIdentifier;
areturn
8: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Invalid SubjectKeyIdentifier: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj
public void <init>(byte[]);
descriptor: ([B)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Encodable.<init>:()V
1: aload 0
aload 1
putfield org.bouncycastle.asn1.x509.SubjectKeyIdentifier.keyidentifier:[B
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/asn1/x509/SubjectKeyIdentifier;
0 3 1 keyid [B
MethodParameters:
Name Flags
keyid
public void <init>(org.bouncycastle.asn1.ASN1OctetString);
descriptor: (Lorg/bouncycastle/asn1/ASN1OctetString;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Encodable.<init>:()V
1: aload 0
aload 1
invokevirtual org.bouncycastle.asn1.ASN1OctetString.getOctets:()[B
putfield org.bouncycastle.asn1.x509.SubjectKeyIdentifier.keyidentifier:[B
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/asn1/x509/SubjectKeyIdentifier;
0 3 1 keyid Lorg/bouncycastle/asn1/ASN1OctetString;
MethodParameters:
Name Flags
keyid
public void <init>(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo);
descriptor: (Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.bouncycastle.asn1.ASN1Encodable.<init>:()V
1: aload 0
aload 1
invokestatic org.bouncycastle.asn1.x509.SubjectKeyIdentifier.getDigest:(Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)[B
putfield org.bouncycastle.asn1.x509.SubjectKeyIdentifier.keyidentifier:[B
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/bouncycastle/asn1/x509/SubjectKeyIdentifier;
0 3 1 spki Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
MethodParameters:
Name Flags
spki
public byte[] getKeyIdentifier();
descriptor: ()[B
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.bouncycastle.asn1.x509.SubjectKeyIdentifier.keyidentifier:[B
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/x509/SubjectKeyIdentifier;
public org.bouncycastle.asn1.DERObject toASN1Object();
descriptor: ()Lorg/bouncycastle/asn1/DERObject;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.bouncycastle.asn1.DEROctetString
dup
aload 0
getfield org.bouncycastle.asn1.x509.SubjectKeyIdentifier.keyidentifier:[B
invokespecial org.bouncycastle.asn1.DEROctetString.<init>:([B)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/bouncycastle/asn1/x509/SubjectKeyIdentifier;
public static org.bouncycastle.asn1.x509.SubjectKeyIdentifier createSHA1KeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo);
descriptor: (Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)Lorg/bouncycastle/asn1/x509/SubjectKeyIdentifier;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.bouncycastle.asn1.x509.SubjectKeyIdentifier
dup
aload 0
invokespecial org.bouncycastle.asn1.x509.SubjectKeyIdentifier.<init>:(Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 keyInfo Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
MethodParameters:
Name Flags
keyInfo
public static org.bouncycastle.asn1.x509.SubjectKeyIdentifier createTruncatedSHA1KeyIdentifier(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo);
descriptor: (Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)Lorg/bouncycastle/asn1/x509/SubjectKeyIdentifier;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=1
start local 0 0: aload 0
invokestatic org.bouncycastle.asn1.x509.SubjectKeyIdentifier.getDigest:(Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)[B
astore 1
start local 1 1: bipush 8
newarray 8
astore 2
start local 2 2: aload 1
aload 1
arraylength
bipush 8
isub
aload 2
iconst_0
aload 2
arraylength
invokestatic java.lang.System.arraycopy:(Ljava/lang/Object;ILjava/lang/Object;II)V
3: aload 2
iconst_0
dup2
baload
bipush 15
iand
i2b
bastore
4: aload 2
iconst_0
dup2
baload
bipush 64
ior
i2b
bastore
5: new org.bouncycastle.asn1.x509.SubjectKeyIdentifier
dup
aload 2
invokespecial org.bouncycastle.asn1.x509.SubjectKeyIdentifier.<init>:([B)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 keyInfo Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
1 6 1 dig [B
2 6 2 id [B
MethodParameters:
Name Flags
keyInfo
private static byte[] getDigest(org.bouncycastle.asn1.x509.SubjectPublicKeyInfo);
descriptor: (Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;)[B
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: new org.bouncycastle.crypto.digests.SHA1Digest
dup
invokespecial org.bouncycastle.crypto.digests.SHA1Digest.<init>:()V
astore 1
start local 1 1: aload 1
invokeinterface org.bouncycastle.crypto.Digest.getDigestSize:()I
newarray 8
astore 2
start local 2 2: aload 0
invokevirtual org.bouncycastle.asn1.x509.SubjectPublicKeyInfo.getPublicKeyData:()Lorg/bouncycastle/asn1/DERBitString;
invokevirtual org.bouncycastle.asn1.DERBitString.getBytes:()[B
astore 3
start local 3 3: aload 1
aload 3
iconst_0
aload 3
arraylength
invokeinterface org.bouncycastle.crypto.Digest.update:([BII)V
4: aload 1
aload 2
iconst_0
invokeinterface org.bouncycastle.crypto.Digest.doFinal:([BI)I
pop
5: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 spki Lorg/bouncycastle/asn1/x509/SubjectPublicKeyInfo;
1 6 1 digest Lorg/bouncycastle/crypto/Digest;
2 6 2 resBuf [B
3 6 3 bytes [B
MethodParameters:
Name Flags
spki
}
SourceFile: "SubjectKeyIdentifier.java"