| Modifier and Type | Method and Description |
|---|---|
KeyData |
PrivateKeyManager.getPublicKeyData(com.google.protobuf.ByteString serializedKey)
Extracts the public key data from the private key data.
|
static KeyData |
Registry.getPublicKeyData(String typeUrl,
com.google.protobuf.ByteString serializedPrivateKey)
Deprecated.
Instead, users should have their keys in a
KeysetHandle and call keysetHandle.getPublicKeysetHandle. |
KeyData |
KeyManager.newKeyData(com.google.protobuf.ByteString serializedKeyFormat)
Generates a new
KeyData according to specification in serializedKeyFormat. |
static KeyData |
Registry.newKeyData(KeyTemplate keyTemplate)
Deprecated.
Use
KeysetHandle.generateNew with a Parameters object instead. To convert a
proto KeyTemplate to a parameters one can use TinkProtoParametersFormat.parse(t.toByteArray()); |
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 <P> P |
Registry.getPrimitive(KeyData keyData,
Class<P> primitiveClass)
Creates a new primitive for the key given in
keyData. |
| Modifier and Type | Method and Description |
|---|---|
KeyData |
LegacyKeyManagerImpl.newKeyData(com.google.protobuf.ByteString serializedKeyFormat) |
| Modifier and Type | Method and Description |
|---|---|
abstract <P> P |
InternalConfiguration.getLegacyPrimitive(KeyData keyData,
Class<P> primitiveClass)
Creates a primitive from a key in the old (proto) format.
|
<P> P |
RegistryConfiguration.getLegacyPrimitive(KeyData keyData,
Class<P> primitiveClass) |
| Modifier and Type | Method and Description |
|---|---|
KeyData |
PrfBasedDeriverKeyManager.newKeyData(com.google.protobuf.ByteString serializedKeyFormat) |
| Modifier and Type | Method and Description |
|---|---|
KeyData |
KeyData.Builder.build() |
KeyData |
KeyData.Builder.buildPartial() |
static KeyData |
KeyData.getDefaultInstance() |
KeyData |
KeyData.getDefaultInstanceForType() |
KeyData |
KeyData.Builder.getDefaultInstanceForType() |
KeyData |
Keyset.KeyOrBuilder.getKeyData()
Contains the actual, instantiation specific key proto.
|
KeyData |
Keyset.Key.getKeyData()
Contains the actual, instantiation specific key proto.
|
KeyData |
Keyset.Key.Builder.getKeyData()
Contains the actual, instantiation specific key proto.
|
KeyData |
PrfBasedDeriverKeyOrBuilder.getPrfKey()
.google.crypto.tink.KeyData prf_key = 2; |
KeyData |
PrfBasedDeriverKey.getPrfKey()
.google.crypto.tink.KeyData prf_key = 2; |
KeyData |
PrfBasedDeriverKey.Builder.getPrfKey()
.google.crypto.tink.KeyData prf_key = 2; |
static KeyData |
KeyData.parseDelimitedFrom(InputStream input) |
static KeyData |
KeyData.parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeyData |
KeyData.parseFrom(byte[] data) |
static KeyData |
KeyData.parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeyData |
KeyData.parseFrom(ByteBuffer data) |
static KeyData |
KeyData.parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeyData |
KeyData.parseFrom(com.google.protobuf.ByteString data) |
static KeyData |
KeyData.parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeyData |
KeyData.parseFrom(com.google.protobuf.CodedInputStream input) |
static KeyData |
KeyData.parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static KeyData |
KeyData.parseFrom(InputStream input) |
static KeyData |
KeyData.parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
| Modifier and Type | Method and Description |
|---|---|
com.google.protobuf.Parser<KeyData> |
KeyData.getParserForType() |
static com.google.protobuf.Parser<KeyData> |
KeyData.parser() |
| Modifier and Type | Method and Description |
|---|---|
KeyData.Builder |
KeyData.Builder.mergeFrom(KeyData other) |
Keyset.Key.Builder |
Keyset.Key.Builder.mergeKeyData(KeyData value)
Contains the actual, instantiation specific key proto.
|
PrfBasedDeriverKey.Builder |
PrfBasedDeriverKey.Builder.mergePrfKey(KeyData value)
.google.crypto.tink.KeyData prf_key = 2; |
static KeyData.Builder |
KeyData.newBuilder(KeyData prototype) |
Keyset.Key.Builder |
Keyset.Key.Builder.setKeyData(KeyData value)
Contains the actual, instantiation specific key proto.
|
PrfBasedDeriverKey.Builder |
PrfBasedDeriverKey.Builder.setPrfKey(KeyData value)
.google.crypto.tink.KeyData prf_key = 2; |
| Modifier and Type | Method and Description |
|---|---|
static KeyHandle |
KeyHandle.createFromKey(KeyData keyData,
KeyTemplate.OutputPrefixType opt)
|
| Modifier and Type | Method and Description |
|---|---|
KeyData |
ProtoKey.getProtoKey() |
| Constructor and Description |
|---|
ProtoKey(KeyData keyData,
KeyTemplate.OutputPrefixType opt)
Constructs a ProtoKey with
hasSecret() returning true if the input KeyData has
key material of type UNKNOWN_KEYMATERIAL, SYMMETRIC, or ASYMMETRIC_PRIVATE. |