Package com.google.crypto.tink
Class KeyTemplate
- java.lang.Object
-
- com.google.crypto.tink.KeyTemplate
-
@Immutable public final class KeyTemplate extends java.lang.ObjectA KeyTemplate specifies how to generate keys of a particular type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classKeyTemplate.OutputPrefixTypeTink produces and accepts ciphertexts or signatures that consist of a prefix and a payload.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static KeyTemplatecreate(java.lang.String typeUrl, byte[] value, KeyTemplate.OutputPrefixType outputPrefixType)Deprecated.Use createFromstatic KeyTemplatecreateFrom(Parameters p)KeyTemplate.OutputPrefixTypegetOutputPrefixType()Deprecated.Instead, operate on theParametersobject obtained withtoParameters().java.lang.StringgetTypeUrl()Deprecated.Instead, operate on theParametersobject obtained withtoParameters().byte[]getValue()Deprecated.Instead, operate on theParametersobject obtained withtoParameters().ParameterstoParameters()
-
-
-
Method Detail
-
create
@Deprecated public static KeyTemplate create(java.lang.String typeUrl, byte[] value, KeyTemplate.OutputPrefixType outputPrefixType)
Deprecated.Use createFrom
-
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 theParametersobject obtained withtoParameters(). 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 theParametersobject obtained withtoParameters(). 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 theParametersobject obtained withtoParameters(). 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
-
-