public abstract class com.google.crypto.tink.KeyTypeManager<KeyProtoT extends com.google.protobuf.MessageLite>
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: com.google.crypto.tink.KeyTypeManager
super_class: java.lang.Object
{
private final java.lang.Class<KeyProtoT> clazz;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<TKeyProtoT;>;
private final java.util.Map<java.lang.Class<?>, com.google.crypto.tink.KeyTypeManager$PrimitiveFactory<?, KeyProtoT>> factories;
descriptor: Ljava/util/Map;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Map<Ljava/lang/Class<*>;Lcom/google/crypto/tink/KeyTypeManager$PrimitiveFactory<*TKeyProtoT;>;>;
private final java.lang.Class<?> firstPrimitiveClass;
descriptor: Ljava/lang/Class;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/lang/Class<*>;
protected void <init>(java.lang.Class<KeyProtoT>, com.google.crypto.tink.KeyTypeManager$PrimitiveFactory<?, KeyProtoT>[]);
descriptor: (Ljava/lang/Class;[Lcom/google/crypto/tink/KeyTypeManager$PrimitiveFactory;)V
flags: (0x0084) ACC_PROTECTED, ACC_VARARGS
Code:
stack=5, locals=8, 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 com.google.crypto.tink.KeyTypeManager.clazz:Ljava/lang/Class;
2: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 3
start local 3 3: aload 2
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 13
StackMap locals: com.google.crypto.tink.KeyTypeManager java.lang.Class com.google.crypto.tink.KeyTypeManager$PrimitiveFactory[] java.util.Map top int int com.google.crypto.tink.KeyTypeManager$PrimitiveFactory[]
StackMap stack:
4: aload 7
iload 5
aaload
astore 4
start local 4 5: aload 3
aload 4
invokevirtual com.google.crypto.tink.KeyTypeManager$PrimitiveFactory.getPrimitiveClass:()Ljava/lang/Class;
invokeinterface java.util.Map.containsKey:(Ljava/lang/Object;)Z
ifeq 11
6: new java.lang.IllegalArgumentException
dup
7: new java.lang.StringBuilder
dup
ldc "KeyTypeManager constructed with duplicate factories for primitive "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
8: aload 4
invokevirtual com.google.crypto.tink.KeyTypeManager$PrimitiveFactory.getPrimitiveClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getCanonicalName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
9: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
10: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals: com.google.crypto.tink.KeyTypeManager java.lang.Class com.google.crypto.tink.KeyTypeManager$PrimitiveFactory[] java.util.Map com.google.crypto.tink.KeyTypeManager$PrimitiveFactory int int com.google.crypto.tink.KeyTypeManager$PrimitiveFactory[]
StackMap stack:
aload 3
aload 4
invokevirtual com.google.crypto.tink.KeyTypeManager$PrimitiveFactory.getPrimitiveClass:()Ljava/lang/Class;
aload 4
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 12: iinc 5 1
StackMap locals: com.google.crypto.tink.KeyTypeManager java.lang.Class com.google.crypto.tink.KeyTypeManager$PrimitiveFactory[] java.util.Map top int int com.google.crypto.tink.KeyTypeManager$PrimitiveFactory[]
StackMap stack:
13: iload 5
iload 6
if_icmplt 4
14: aload 2
arraylength
ifle 17
15: aload 0
aload 2
iconst_0
aaload
invokevirtual com.google.crypto.tink.KeyTypeManager$PrimitiveFactory.getPrimitiveClass:()Ljava/lang/Class;
putfield com.google.crypto.tink.KeyTypeManager.firstPrimitiveClass:Ljava/lang/Class;
16: goto 18
17: StackMap locals: com.google.crypto.tink.KeyTypeManager java.lang.Class com.google.crypto.tink.KeyTypeManager$PrimitiveFactory[] java.util.Map
StackMap stack:
aload 0
ldc Ljava/lang/Void;
putfield com.google.crypto.tink.KeyTypeManager.firstPrimitiveClass:Ljava/lang/Class;
18: StackMap locals:
StackMap stack:
aload 0
aload 3
invokestatic java.util.Collections.unmodifiableMap:(Ljava/util/Map;)Ljava/util/Map;
putfield com.google.crypto.tink.KeyTypeManager.factories:Ljava/util/Map;
19: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lcom/google/crypto/tink/KeyTypeManager<TKeyProtoT;>;
0 20 1 clazz Ljava/lang/Class<TKeyProtoT;>;
0 20 2 factories [Lcom/google/crypto/tink/KeyTypeManager$PrimitiveFactory;
3 20 3 factoriesMap Ljava/util/Map<Ljava/lang/Class<*>;Lcom/google/crypto/tink/KeyTypeManager$PrimitiveFactory<*TKeyProtoT;>;>;
5 12 4 factory Lcom/google/crypto/tink/KeyTypeManager$PrimitiveFactory<*TKeyProtoT;>;
Signature: (Ljava/lang/Class<TKeyProtoT;>;[Lcom/google/crypto/tink/KeyTypeManager$PrimitiveFactory<*TKeyProtoT;>;)V
RuntimeVisibleAnnotations:
java.lang.SafeVarargs()
MethodParameters:
Name Flags
clazz
factories
public final java.lang.Class<KeyProtoT> getKeyClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.crypto.tink.KeyTypeManager.clazz:Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/crypto/tink/KeyTypeManager<TKeyProtoT;>;
Signature: ()Ljava/lang/Class<TKeyProtoT;>;
public abstract java.lang.String getKeyType();
descriptor: ()Ljava/lang/String;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public abstract int getVersion();
descriptor: ()I
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
public KeyMaterialType keyMaterialType();
descriptor: ()LKeyMaterialType;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.Error
dup
ldc "Unresolved compilation problem: \n\tKeyMaterialType cannot be resolved to a type\n"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/crypto/tink/KeyTypeManager<TKeyProtoT;>;
public abstract KeyProtoT parseKey(com.google.protobuf.ByteString);
descriptor: (Lcom/google/protobuf/ByteString;)Lcom/google/protobuf/MessageLite;
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws com.google.protobuf.InvalidProtocolBufferException
Signature: (Lcom/google/protobuf/ByteString;)TKeyProtoT;
MethodParameters:
Name Flags
byteString
public abstract void validateKey();
descriptor: (Lcom/google/protobuf/MessageLite;)V
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
Exceptions:
throws java.security.GeneralSecurityException
Signature: (TKeyProtoT;)V
MethodParameters:
Name Flags
keyProto
public final <P> P getPrimitive(KeyProtoT, java.lang.Class<P>);
descriptor: (Lcom/google/protobuf/MessageLite;Ljava/lang/Class;)Ljava/lang/Object;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=5, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.google.crypto.tink.KeyTypeManager.factories:Ljava/util/Map;
aload 2
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.google.crypto.tink.KeyTypeManager$PrimitiveFactory
1: astore 3
start local 3 2: aload 3
ifnonnull 6
3: new java.lang.IllegalArgumentException
dup
4: new java.lang.StringBuilder
dup
ldc "Requested primitive class "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.Class.getCanonicalName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " not supported."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
5: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: com.google.crypto.tink.KeyTypeManager$PrimitiveFactory
StackMap stack:
aload 3
aload 1
invokevirtual com.google.crypto.tink.KeyTypeManager$PrimitiveFactory.getPrimitive:(Ljava/lang/Object;)Ljava/lang/Object;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lcom/google/crypto/tink/KeyTypeManager<TKeyProtoT;>;
0 7 1 key TKeyProtoT;
0 7 2 primitiveClass Ljava/lang/Class<TP;>;
2 7 3 factory Lcom/google/crypto/tink/KeyTypeManager$PrimitiveFactory<TP;TKeyProtoT;>;
Exceptions:
throws java.security.GeneralSecurityException
Signature: <P:Ljava/lang/Object;>(TKeyProtoT;Ljava/lang/Class<TP;>;)TP;
MethodParameters:
Name Flags
key
primitiveClass
public final java.util.Set<java.lang.Class<?>> supportedPrimitives();
descriptor: ()Ljava/util/Set;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.crypto.tink.KeyTypeManager.factories:Ljava/util/Map;
invokeinterface java.util.Map.keySet:()Ljava/util/Set;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/crypto/tink/KeyTypeManager<TKeyProtoT;>;
Signature: ()Ljava/util/Set<Ljava/lang/Class<*>;>;
final java.lang.Class<?> firstSupportedPrimitiveClass();
descriptor: ()Ljava/lang/Class;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield com.google.crypto.tink.KeyTypeManager.firstPrimitiveClass:Ljava/lang/Class;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/crypto/tink/KeyTypeManager<TKeyProtoT;>;
Signature: ()Ljava/lang/Class<*>;
public com.google.crypto.tink.KeyTypeManager$KeyFactory<?, KeyProtoT> keyFactory();
descriptor: ()Lcom/google/crypto/tink/KeyTypeManager$KeyFactory;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.UnsupportedOperationException
dup
ldc "Creating keys is not supported."
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/google/crypto/tink/KeyTypeManager<TKeyProtoT;>;
Signature: ()Lcom/google/crypto/tink/KeyTypeManager$KeyFactory<*TKeyProtoT;>;
}
Signature: <KeyProtoT::Lcom/google/protobuf/MessageLite;>Ljava/lang/Object;
SourceFile: "KeyTypeManager.java"
NestMembers:
com.google.crypto.tink.KeyTypeManager$KeyFactory com.google.crypto.tink.KeyTypeManager$PrimitiveFactory
InnerClasses:
public abstract KeyFactory = com.google.crypto.tink.KeyTypeManager$KeyFactory of com.google.crypto.tink.KeyTypeManager
protected abstract PrimitiveFactory = com.google.crypto.tink.KeyTypeManager$PrimitiveFactory of com.google.crypto.tink.KeyTypeManager
RuntimeInvisibleAnnotations:
com.google.crypto.tink.annotations.Alpha()