| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
KeyTemplate.create(String typeUrl,
byte[] value,
KeyTemplate.OutputPrefixType outputPrefixType) |
static KeyTemplate |
KeyTemplates.get(String name)
Returns a key template that was registered with the
Registry as name. |
| Modifier and Type | Method and Description |
|---|---|
KeysetManager |
KeysetManager.add(KeyTemplate keyTemplate)
Generates and adds a fresh key generated using
keyTemplate. |
static KeysetHandle |
KeysetHandle.generateNew(KeyTemplate keyTemplate)
Generates a new
KeysetHandle that contains a single fresh key generated according to
keyTemplate. |
static KeyData |
Registry.newKeyData(KeyTemplate keyTemplate)
Convenience method for generating a new
KeyData for the specified template. |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
AesCtrHmacAeadKeyManager.aes128CtrHmacSha256Template() |
static KeyTemplate |
AesEaxKeyManager.aes128EaxTemplate() |
static KeyTemplate |
AesGcmSivKeyManager.aes128GcmSivTemplate()
Creates and returns a
KeyTemplate that generates new instances of AES-GCM-SIV with the
following parameters:
Key size: 16 bytes
Prefix type: KeyTemplate.OutputPrefixType#TINK
|
static KeyTemplate |
AesGcmKeyManager.aes128GcmTemplate() |
static KeyTemplate |
AesCtrHmacAeadKeyManager.aes256CtrHmacSha256Template() |
static KeyTemplate |
AesEaxKeyManager.aes256EaxTemplate() |
static KeyTemplate |
AesGcmSivKeyManager.aes256GcmSivTemplate()
Creates and returns a
KeyTemplate that generates new instances of AES-GCM-SIV with the
following parameters:
Key size: 32 bytes
Prefix type: KeyTemplate.OutputPrefixType#TINK
|
static KeyTemplate |
AesGcmKeyManager.aes256GcmTemplate() |
static KeyTemplate |
ChaCha20Poly1305KeyManager.chaCha20Poly1305Template() |
static KeyTemplate |
KmsAeadKeyManager.createKeyTemplate(String kekUri)
Returns a new
KeyTemplate that can generate a KmsAeadKey whose key encrypting key (KEK) is pointing to kekUri. |
static KeyTemplate |
KmsEnvelopeAeadKeyManager.createKeyTemplate(String kekUri,
KeyTemplate dekTemplate)
Returns a new
KeyTemplate that can generate a KmsEnvelopeAeadKey whose key encrypting key (KEK) is pointing to
kekUri and DEK template is dekTemplate. |
static KeyTemplate |
AesEaxKeyManager.rawAes128EaxTemplate() |
static KeyTemplate |
AesGcmSivKeyManager.rawAes128GcmSivTemplate()
Creates and returns a
KeyTemplate that generates new instances of AES-GCM with the
following parameters:
Key size: 16 bytes
Prefix type: KeyTemplate.OutputPrefixType#RAW (no prefix)
|
static KeyTemplate |
AesGcmKeyManager.rawAes128GcmTemplate() |
static KeyTemplate |
AesEaxKeyManager.rawAes256EaxTemplate() |
static KeyTemplate |
AesGcmSivKeyManager.rawAes256GcmSivTemplate()
Creates and returns a
KeyTemplate that generates new instances of AES-GCM-SIV with the
following parameters:
Key size: 32 bytes
Prefix type: KeyTemplate.OutputPrefixType#RAW (no prefix)
|
static KeyTemplate |
AesGcmKeyManager.rawAes256GcmTemplate() |
static KeyTemplate |
ChaCha20Poly1305KeyManager.rawChaCha20Poly1305Template() |
static KeyTemplate |
XChaCha20Poly1305KeyManager.rawXChaCha20Poly1305Template() |
static KeyTemplate |
XChaCha20Poly1305KeyManager.xChaCha20Poly1305Template() |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
KmsEnvelopeAeadKeyManager.createKeyTemplate(String kekUri,
KeyTemplate dekTemplate)
Returns a new
KeyTemplate that can generate a KmsEnvelopeAeadKey whose key encrypting key (KEK) is pointing to
kekUri and DEK template is dekTemplate. |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
AesSivKeyManager.aes256SivTemplate() |
static KeyTemplate |
AesSivKeyManager.rawAes256SivTemplate() |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
EciesAeadHkdfPrivateKeyManager.eciesP256HkdfHmacSha256Aes128CtrHmacSha256Template() |
static KeyTemplate |
EciesAeadHkdfPrivateKeyManager.eciesP256HkdfHmacSha256Aes128GcmTemplate() |
static KeyTemplate |
EciesAeadHkdfPrivateKeyManager.rawEciesP256HkdfHmacSha256Aes128CtrHmacSha256CompressedTemplate() |
static KeyTemplate |
EciesAeadHkdfPrivateKeyManager.rawEciesP256HkdfHmacSha256Aes128GcmCompressedTemplate() |
| Modifier and Type | Method and Description |
|---|---|
AndroidKeysetManager |
AndroidKeysetManager.add(KeyTemplate keyTemplate)
Generates and adds a fresh key generated using
keyTemplate. |
AndroidKeysetManager.Builder |
AndroidKeysetManager.Builder.withKeyTemplate(KeyTemplate val)
If the keyset is not found or valid, generates a new one using
val. |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
KeyTemplateProtoConverter.fromByteArray(byte[] bytes) |
static KeyTemplate |
KeyTemplateProtoConverter.fromProto(KeyTemplate proto) |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
KeyTemplateProtoConverter.toByteArray(KeyTemplate keyTemplate) |
static KeyTemplate |
KeyTemplateProtoConverter.toProto(KeyTemplate keyTemplate) |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
JwtHmacKeyManager.hs256Template()
Returns a
KeyTemplate that generates new instances of HS256 256-bit keys. |
static KeyTemplate |
JwtHmacKeyManager.hs384Template()
Returns a
KeyTemplate that generates new instances of HS384 384-bit keys. |
static KeyTemplate |
JwtHmacKeyManager.hs512Template()
Returns a
KeyTemplate that generates new instances of HS512 384-bit keys. |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
AesCmacKeyManager.aes256CmacTemplate() |
static KeyTemplate |
HmacKeyManager.hmacSha256HalfDigestTemplate() |
static KeyTemplate |
HmacKeyManager.hmacSha256Template() |
static KeyTemplate |
HmacKeyManager.hmacSha512HalfDigestTemplate() |
static KeyTemplate |
HmacKeyManager.hmacSha512Template() |
static KeyTemplate |
AesCmacKeyManager.rawAes256CmacTemplate() |
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
AesCmacPrfKeyManager.aes256CmacTemplate()
Returns a
KeyTemplate that generates new instances of AES-CMAC keys with the following
parameters:
Key size: 32 bytes
Prefix type: KeyTemplate.OutputPrefixType#RAW
|
static KeyTemplate |
HkdfPrfKeyManager.hkdfSha256Template()
Generates a
KeyTemplate for HKDF-PRF keys with the following parameters. |
static KeyTemplate |
HmacPrfKeyManager.hmacSha256Template()
Returns a
KeyTemplate that generates new instances of HMAC keys with the following
parameters:
Key size: 32 bytes
Hash function: SHA256
Prefix type: KeyTemplate.OutputPrefixType#RAW
|
static KeyTemplate |
HmacPrfKeyManager.hmacSha512Template()
Returns a
KeyTemplate that generates new instances of HMAC keys with the following
parameters:
Key size: 64 bytes
Hash function: SHA512
Prefix type: KeyTemplate.OutputPrefixType#RAW
|
| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
AesCtrHmacStreamingKeyManager.aes128CtrHmacSha2561MBTemplate() |
static KeyTemplate |
AesCtrHmacStreamingKeyManager.aes128CtrHmacSha2564KBTemplate() |
static KeyTemplate |
AesGcmHkdfStreamingKeyManager.aes128GcmHkdf1MBTemplate() |
static KeyTemplate |
AesGcmHkdfStreamingKeyManager.aes128GcmHkdf4KBTemplate() |
static KeyTemplate |
AesCtrHmacStreamingKeyManager.aes256CtrHmacSha2561MBTemplate() |
static KeyTemplate |
AesCtrHmacStreamingKeyManager.aes256CtrHmacSha2564KBTemplate() |
static KeyTemplate |
AesGcmHkdfStreamingKeyManager.aes256GcmHkdf1MBTemplate() |
static KeyTemplate |
AesGcmHkdfStreamingKeyManager.aes256GcmHkdf4KBTemplate() |
| Modifier and Type | Method and Description |
|---|---|
KeyTemplate |
TinkKey.getKeyTemplate()
Deprecated.
A
TinkKey should know the KeyTemplate from which it was generated,
which in turn specifies the cryptographic algorithm in which the TinkKey should
be used. |
KeyTemplate |
KeyHandle.getKeyTemplate()
Deprecated.
Returns the
KeyTemplate of the underlying TinkKey. |
| Modifier and Type | Method and Description |
|---|---|
static KeyHandle |
KeyHandle.generateNew(KeyTemplate keyTemplate)
Deprecated.
Generates a new
KeyHandle that contains a fresh key generated according to keyTemplate. |
| Modifier and Type | Method and Description |
|---|---|
KeyTemplate |
ProtoKey.getKeyTemplate() |