Package com.google.crypto.tink.internal
Class PrimitiveFactory<PrimitiveT,KeyProtoT extends com.google.protobuf.MessageLite>
- java.lang.Object
-
- com.google.crypto.tink.internal.PrimitiveFactory<PrimitiveT,KeyProtoT>
-
public abstract class PrimitiveFactory<PrimitiveT,KeyProtoT extends com.google.protobuf.MessageLite> extends java.lang.ObjectA PrimitiveFactory knows how to create primitives from a given key.
-
-
Constructor Summary
Constructors Constructor Description PrimitiveFactory(java.lang.Class<PrimitiveT> clazz)
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract PrimitiveTgetPrimitive(KeyProtoT key)Creates a new instance ofPrimitiveT.
-
-
-
Constructor Detail
-
PrimitiveFactory
public PrimitiveFactory(java.lang.Class<PrimitiveT> clazz)
-
-
Method Detail
-
getPrimitive
public abstract PrimitiveT getPrimitive(KeyProtoT key) throws java.security.GeneralSecurityException
Creates a new instance ofPrimitiveT.For primitives of type
Mac,Aead,PublicKeySign,PublicKeyVerify,DeterministicAead,HybridEncrypt, andHybridDecryptthis should be a primitive which ignores the output prefix and assumes "RAW".- Throws:
java.security.GeneralSecurityException
-
-