@Immutable public final class KeyTemplate extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
KeyTemplate.OutputPrefixType
Tink produces and accepts ciphertexts or signatures that consist of a prefix and a payload.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
create(String typeUrl,
byte[] value,
KeyTemplate.OutputPrefixType outputPrefixType)
Deprecated.
Use createFrom
|
static KeyTemplate |
createFrom(Parameters p) |
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". |
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". |
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". |
Parameters |
toParameters() |
@Deprecated public static KeyTemplate create(String typeUrl, byte[] value, KeyTemplate.OutputPrefixType outputPrefixType)
public static KeyTemplate createFrom(Parameters p) throws GeneralSecurityException
GeneralSecurityException@Deprecated public String getTypeUrl()
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".@Deprecated public byte[] getValue()
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".@Deprecated public KeyTemplate.OutputPrefixType getOutputPrefixType()
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".public Parameters toParameters() throws GeneralSecurityException
GeneralSecurityException