Package com.google.crypto.tink.internal
Class KeyTemplateProtoConverter
- java.lang.Object
-
- com.google.crypto.tink.internal.KeyTemplateProtoConverter
-
public final class KeyTemplateProtoConverter extends java.lang.ObjectKeyTemplateProtoConverter converts KeyTemplate to and from the binary proto format.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static KeyTemplate.OutputPrefixTypegetOutputPrefixType(KeyTemplate t)static KeyTemplate.OutputPrefixTypeprefixFromProto(com.google.crypto.tink.proto.OutputPrefixType outputPrefixType)static byte[]toByteArray(KeyTemplate keyTemplate)static com.google.crypto.tink.proto.KeyTemplatetoProto(KeyTemplate keyTemplate)
-
-
-
Method Detail
-
prefixFromProto
public static KeyTemplate.OutputPrefixType prefixFromProto(com.google.crypto.tink.proto.OutputPrefixType outputPrefixType) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
toProto
public static com.google.crypto.tink.proto.KeyTemplate toProto(KeyTemplate keyTemplate) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
toByteArray
public static byte[] toByteArray(KeyTemplate keyTemplate) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
getOutputPrefixType
public static KeyTemplate.OutputPrefixType getOutputPrefixType(KeyTemplate t) throws java.security.GeneralSecurityException
- Throws:
java.security.GeneralSecurityException
-
-