Class KeyTemplate


  • @Immutable
    public final class KeyTemplate
    extends java.lang.Object
    A KeyTemplate specifies how to generate keys of a particular type.
    • Method Detail

      • createFrom

        public static KeyTemplate createFrom​(Parameters p)
                                      throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException
      • getTypeUrl

        @Deprecated
        public java.lang.String getTypeUrl()
        Deprecated.
        Instead, operate on the Parameters object obtained with toParameters(). If you really need this array, you need to first use TinkProtoParametersFormat to serialize this parameters object, then parse the result with the Tink-internal proto class "KeyTemplate".
      • getValue

        @Deprecated
        public byte[] getValue()
        Deprecated.
        Instead, operate on the Parameters object obtained with toParameters(). If you really need this array, you need to first use TinkProtoParametersFormat to serialize this parameters object, then parse the result with the Tink-internal proto class "KeyTemplate".
      • getOutputPrefixType

        @Deprecated
        public KeyTemplate.OutputPrefixType getOutputPrefixType()
        Deprecated.
        Instead, operate on the Parameters object obtained with toParameters(). If you really need this value, you need to first use TinkProtoParametersFormat to serialize this parameters object, then parse the result with the Tink-internal proto class "KeyTemplate".
      • toParameters

        public Parameters toParameters()
                                throws java.security.GeneralSecurityException
        Throws:
        java.security.GeneralSecurityException