public abstract class PrimitiveFactory<PrimitiveT,KeyProtoT extends com.google.protobuf.MessageLite> extends Object
| Constructor and Description |
|---|
PrimitiveFactory(Class<PrimitiveT> clazz) |
| Modifier and Type | Method and Description |
|---|---|
abstract PrimitiveT |
getPrimitive(KeyProtoT key)
Creates a new instance of
PrimitiveT. |
public PrimitiveFactory(Class<PrimitiveT> clazz)
public abstract PrimitiveT getPrimitive(KeyProtoT key) throws GeneralSecurityException
PrimitiveT.
For primitives of type Mac, Aead, PublicKeySign, PublicKeyVerify, DeterministicAead, HybridEncrypt, and HybridDecrypt
this should be a primitive which ignores the output prefix and assumes "RAW".
GeneralSecurityException