| Modifier and Type | Method and Description |
|---|---|
abstract Parameters |
Key.getParameters()
Returns a
Parameters object containing all the information about the key which is not
randomly chosen. |
static Parameters |
TinkProtoParametersFormat.parse(byte[] serializedParameters)
Parses a byte[] into a Parameters object according to Tink's binary format.
|
Parameters |
KeyTemplate.toParameters() |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
KeyTemplate.createFrom(Parameters p) |
static KeysetHandle.Builder.Entry |
KeysetHandle.generateEntryFromParameters(Parameters parameters)
Creates a new entry with Status "ENABLED" and a new key created from the parameters.
|
static KeysetHandle |
KeysetHandle.generateNew(Parameters parameters)
Generates a new
KeysetHandle that contains a single fresh key generated key with the
given Parameters object. |
static byte[] |
TinkProtoParametersFormat.serialize(Parameters parameters)
Serializes a Parameters object into a byte[] according to Tink's binary format.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AeadParameters
Represents a description of a
AeadKey |
class |
AesCtrHmacAeadParameters
Describes the parameters of an
AesCtrHmacAeadKey. |
class |
AesEaxParameters
Describes the parameters of an
AesEaxKey. |
class |
AesGcmParameters
Describes the parameters of an
AesGcmKey |
class |
AesGcmSivParameters
Describes the parameters of an
AesGcmSivSivKey |
class |
ChaCha20Poly1305Parameters
Describes the parameters of an
ChaChaPoly1305Key. |
class |
LegacyKmsAeadParameters
Describes the parameters of an
KmsAeadKey |
class |
LegacyKmsEnvelopeAeadParameters
Describes the parameters of an
LegacyKmsEnvelopeAeadKey. |
class |
XChaCha20Poly1305Parameters
Describes the parameters of an
XChaChaPoly1305Key. |
| Modifier and Type | Class and Description |
|---|---|
class |
AesSivParameters
Describes the parameters of an
AesSivSivKey |
class |
DeterministicAeadParameters
Represents a description of a
DeterministicAeadKey |
| Modifier and Type | Class and Description |
|---|---|
class |
EciesParameters
Parameters for an ECIES primitive with HKDF and AEAD encryption.
|
class |
HpkeParameters
Description of the parameters for an
HpkePublicKey or HpkePrivateKey. |
class |
HybridParameters
Represents a description of a
HybridPrivateKey and the corresponding HybridPublicKey excluding the randomly chosen key material. |
| Modifier and Type | Method and Description |
|---|---|
Parameters |
EciesParameters.getDemParameters() |
| Modifier and Type | Method and Description |
|---|---|
EciesParameters.Builder |
EciesParameters.Builder.setDemParameters(Parameters demParameters)
Current implementation only accepts certain NO_PREFIX instances of AesGcmParameters,
AesCtrHmacAeadParameters, XChaCha20Poly1305Parameters or AesSivParameters.
|
| Modifier and Type | Interface and Description |
|---|---|
static interface |
MutableKeyCreationRegistry.KeyCreator<ParametersT extends Parameters>
A class to create key objects from parameters with given randomness.
|
static interface |
MutableKeyDerivationRegistry.InsecureKeyCreator<ParametersT extends Parameters>
A class to create key objects from parameters with given randomness.
|
class |
ParametersSerializer<ParametersT extends Parameters,SerializationT extends Serialization>
Serializes
Parameters objects into Serialization objects of a certain kind. |
static interface |
ParametersSerializer.ParametersSerializationFunction<ParametersT extends Parameters,SerializationT extends Serialization>
A function which serializes a Parameters object.
|
| Modifier and Type | Class and Description |
|---|---|
class |
LegacyProtoParameters
Implements a Parameters object for legacy types where no actual Parameters object is present.
|
| Modifier and Type | Method and Description |
|---|---|
<ParametersT extends Parameters> |
MutableKeyCreationRegistry.add(MutableKeyCreationRegistry.KeyCreator<ParametersT> creator,
Class<ParametersT> parametersClass)
Adds a new "InsecureKeyCreator" to the instance.
|
<ParametersT extends Parameters> |
MutableKeyDerivationRegistry.add(MutableKeyDerivationRegistry.InsecureKeyCreator<ParametersT> creator,
Class<ParametersT> parametersClass)
Adds a new "InsecureKeyCreator" to the instance.
|
static <ParametersT extends Parameters,SerializationT extends Serialization> |
ParametersSerializer.create(ParametersSerializer.ParametersSerializationFunction<ParametersT,SerializationT> function,
Class<ParametersT> parametersClass,
Class<SerializationT> serializationClass)
Creates a ParametersSerializer object.
|
<ParametersT extends Parameters,SerializationT extends Serialization> |
SerializationRegistry.hasSerializerForParameters(ParametersT parameters,
Class<SerializationT> serializationClass)
Returns true if a parser for this
serializedKey has been registered. |
<ParametersT extends Parameters,SerializationT extends Serialization> |
MutableSerializationRegistry.hasSerializerForParameters(ParametersT parameters,
Class<SerializationT> serializationClass)
Returns true if a parser for this
serializedKey has been registered. |
<ParametersT extends Parameters,SerializationT extends Serialization> |
SerializationRegistry.Builder.registerParametersSerializer(ParametersSerializer<ParametersT,SerializationT> serializer)
Registers a key serializer for later use in
SerializationRegistry.serializeKey(KeyT, java.lang.Class<SerializationT>, com.google.crypto.tink.SecretKeyAccess). |
<ParametersT extends Parameters,SerializationT extends Serialization> |
MutableSerializationRegistry.registerParametersSerializer(ParametersSerializer<ParametersT,SerializationT> serializer)
Registers a key serializer for later use in
MutableSerializationRegistry.serializeKey(KeyT, java.lang.Class<SerializationT>, com.google.crypto.tink.SecretKeyAccess). |
<ParametersT extends Parameters,SerializationT extends Serialization> |
SerializationRegistry.serializeParameters(ParametersT parameters,
Class<SerializationT> serializationClass)
Serializes a given Parameters object into a "SerializationT" object.
|
<ParametersT extends Parameters,SerializationT extends Serialization> |
MutableSerializationRegistry.serializeParameters(ParametersT parameters,
Class<SerializationT> serializationClass)
Serializes a given Parameters object into a "SerializationT" object.
|
| Modifier and Type | Method and Description |
|---|---|
Parameters |
MutableParametersRegistry.get(String name) |
Parameters |
LegacyProtoKey.getParameters()
Returns a LegacyParametersNotForCreation object.
|
Parameters |
PrimitiveSet.Entry.getParameters() |
abstract Parameters |
ParametersParser.parseParameters(SerializationT serialization)
Parses a serialization into a
Parameters object. |
Parameters |
ParametersParser.ParametersParsingFunction.parseParameters(SerializationT serialization) |
<SerializationT extends Serialization> |
SerializationRegistry.parseParameters(SerializationT serializedParameters)
Parses the given serialization into a Parameters.
|
<SerializationT extends Serialization> |
MutableSerializationRegistry.parseParameters(SerializationT serializedParameters)
Parses the given serialization into a Parameters object.
|
Parameters |
MutableSerializationRegistry.parseParametersWithLegacyFallback(ProtoParametersSerialization protoParametersSerialization)
Returns a Parameters object from a protoKeySerialization, even if no parser has been
registered.
|
| Modifier and Type | Method and Description |
|---|---|
Key |
MutableKeyCreationRegistry.createKey(Parameters parameters,
Integer idRequirement)
Creates a
Key from a given Parameters object. |
Key |
MutableKeyDerivationRegistry.createKeyFromRandomness(Parameters parameters,
InputStream inputStream,
Integer idRequirement,
SecretKeyAccess access)
Creates a
Key from a given Parameters object and additional data. |
void |
MutableParametersRegistry.put(String name,
Parameters value) |
| Modifier and Type | Method and Description |
|---|---|
void |
MutableParametersRegistry.putAll(Map<String,Parameters> values) |
| Modifier and Type | Class and Description |
|---|---|
class |
JwtEcdsaParameters
Describes the parameters of a
JwtEcdsaPrivateKey or a JwtEcdsaPublicKey. |
class |
JwtHmacParameters
Describes the parameters of a
JwtHmacKey. |
class |
JwtMacParameters
Represents a description of a
JwtMacKey excluding the randomly chosen key material. |
class |
JwtRsaSsaPkcs1Parameters
Describes the parameters of a
JwtRsaSsaPkcs1PublicKey and JwtRsaSsaPkcs1PrivateKey. |
class |
JwtRsaSsaPssParameters
Describes the parameters of a
JwtRsaSsaPssPublicKey and JwtRsaSsaPssPrivateKey. |
class |
JwtSignatureParameters
Represents a description of a
JwtSignatureKey excluding the randomly chosen key material. |
| Modifier and Type | Class and Description |
|---|---|
class |
KeyDerivationParameters
The public part of a
KeyDerivationKey. |
class |
PrfBasedKeyDerivationParameters
Represents the parameters needed in a
PrfBasedKeyDerivationKey. |
| Modifier and Type | Method and Description |
|---|---|
Parameters |
PrfBasedKeyDerivationParameters.getDerivedKeyParameters()
The parameters of the keys which are in the result keyset when the user calls
KeysetDeriver.deriveKeyset(). |
abstract Parameters |
KeyDerivationParameters.getDerivedKeyParameters() |
| Modifier and Type | Method and Description |
|---|---|
PrfBasedKeyDerivationParameters.Builder |
PrfBasedKeyDerivationParameters.Builder.setDerivedKeyParameters(Parameters derivedKeyParameters)
The parameters of the keys which are in the result keyset when the user calls
KeysetDeriver.deriveKeyset(). |
| Modifier and Type | Class and Description |
|---|---|
class |
AesCmacParameters
Describes the parameters of an
AesCmacKey. |
class |
HmacParameters
Describes the parameters of an
HmacKey. |
class |
MacParameters
Represents a description of a
MacKey excluding the randomly chosen key material. |
| Modifier and Type | Class and Description |
|---|---|
class |
AesCmacPrfParameters
Describes the parameters of an
AesCmacPrfKey. |
class |
HkdfPrfParameters
Describes the parameters of an
HkdfPrfKey. |
class |
HmacPrfParameters
Describes the parameters of an
HmacPrfKey. |
class |
PrfParameters
Represents a description of a
PrfKey excluding the randomly chosen key material. |
| Modifier and Type | Class and Description |
|---|---|
class |
EcdsaParameters
Describes the parameters of an ECDSA signature primitive.
|
class |
Ed25519Parameters
This class describes the parameters of an
Ed25519Key. |
class |
RsaSsaPkcs1Parameters
Describes the parameters of a
RsaSsaPkcs1PublicKey and RsaSsaPkcs1PrivateKey. |
class |
RsaSsaPssParameters
Describes the parameters of a
RsaSsaPssPublicKey and RsaSsaPssPrivateKey. |
class |
SignatureParameters
Represents a description of a
SignaturePrivateKey and the coresponding SignaturePublicKey excluding the randomly chosen key material. |
| Modifier and Type | Class and Description |
|---|---|
class |
AesCtrHmacStreamingParameters
Represents the parameters of a
AesCtrHmacStreamingKey. |
class |
AesGcmHkdfStreamingParameters
Represents the parameters of a
AesGcmHkdfStreamingKey. |
class |
StreamingAeadParameters
Represents a description of a
StreamingAeadKey. |