| Modifier and Type | Method and Description |
|---|---|
static KeyTemplate |
KeyTemplate.create(String typeUrl,
byte[] value,
KeyTemplate.OutputPrefixType outputPrefixType)
Deprecated.
Use createFrom
|
static KeyTemplate |
KeyTemplate.createFrom(Parameters p) |
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)
Deprecated.
Use
KeysetHandle.generateNew(keyTemplate.toParameters()) instead and use
the Keyset Handle API. |
| 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 keyUri)
|
static KeyTemplate |
KmsEnvelopeAeadKeyManager.createKeyTemplate(String kekUri,
KeyTemplate dekTemplate)
Returns a new
KeyTemplate that can generate a LegacyKmsEnvelopeAeadKey whose
key encrypting key (KEK) is pointing to kekUri and DEK template is dekTemplate
(or a derived version of it). |
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 LegacyKmsEnvelopeAeadKey whose
key encrypting key (KEK) is pointing to kekUri and DEK template is dekTemplate
(or a derived version of it). |
| 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 |
|---|---|
static KeyTemplate.OutputPrefixType |
KeyTemplateProtoConverter.getOutputPrefixType(KeyTemplate t) |
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 512-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 |
EcdsaSignKeyManager.ecdsaP256Template() |
static KeyTemplate |
Ed25519PrivateKeyManager.ed25519Template() |
static KeyTemplate |
EcdsaSignKeyManager.rawEcdsaP256Template() |
static KeyTemplate |
Ed25519PrivateKeyManager.rawEd25519Template() |
static KeyTemplate |
RsaSsaPssSignKeyManager.rawRsa3072PssSha256F4Template() |
static KeyTemplate |
RsaSsaPkcs1SignKeyManager.rawRsa3072SsaPkcs1Sha256F4Template() |
static KeyTemplate |
RsaSsaPssSignKeyManager.rawRsa4096PssSha512F4Template() |
static KeyTemplate |
RsaSsaPkcs1SignKeyManager.rawRsa4096SsaPkcs1Sha512F4Template() |
static KeyTemplate |
RsaSsaPssSignKeyManager.rsa3072PssSha256F4Template() |
static KeyTemplate |
RsaSsaPkcs1SignKeyManager.rsa3072SsaPkcs1Sha256F4Template() |
static KeyTemplate |
RsaSsaPssSignKeyManager.rsa4096PssSha512F4Template() |
static KeyTemplate |
RsaSsaPkcs1SignKeyManager.rsa4096SsaPkcs1Sha512F4Template() |
| 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()
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()
Returns the
KeyTemplate of the underlying TinkKey. |
| Modifier and Type | Method and Description |
|---|---|
static KeyHandle |
KeyHandle.generateNew(KeyTemplate keyTemplate)
Generates a new
KeyHandle that contains a fresh key generated according to keyTemplate. |
| Modifier and Type | Method and Description |
|---|---|
KeyTemplate |
ProtoKey.getKeyTemplate() |