Class KeyTemplateProtoConverter


  • public final class KeyTemplateProtoConverter
    extends java.lang.Object
    KeyTemplateProtoConverter converts KeyTemplate to and from the binary proto format.
    • 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