| Package | Description |
|---|---|
| com.google.crypto.tink | |
| com.google.crypto.tink.proto | |
| com.google.crypto.tink.tinkkey | |
| com.google.crypto.tink.tinkkey.internal |
| Modifier and Type | Method and Description |
|---|---|
static KeyData |
PrivilegedRegistry.deriveKey(KeyTemplate keyTemplate,
InputStream randomStream)
Method to derive a key, using the given , with the randomness as provided
by the second argument.
|
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)
Convenience method for extracting the public key data from the private key given in
serializedPrivateKey. |
KeyData |
KeyManager.newKeyData(com.google.protobuf.ByteString serializedKeyFormat)
Generates a new
KeyData according to specification in serializedkeyFormat. |
static KeyData |
Registry.newKeyData(KeyTemplate keyTemplate)
Convenience method for generating a new
KeyData for the specified template. |
static KeyData |
Registry.newKeyData(KeyTemplate keyTemplate)
Convenience method for generating a new
KeyData for the specified template. |
| Modifier and Type | Method and Description |
|---|---|
static <P> P |
Registry.getPrimitive(KeyData keyData)
Deprecated.
Use
getPrimitive(keyData, Primitive.class) instead. |
static <P> P |
Registry.getPrimitive(KeyData keyData,
Class<P> primitiveClass)
Convenience method for creating a new primitive for the key given in
keyData. |
static com.google.protobuf.MessageLite |
PrivilegedRegistry.parseKeyData(KeyData keyData)
Returns the key proto in the keyData if a corresponding key type manager was registered.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyData |
KeyData.getDefaultInstance() |
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.
|
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 |
|---|---|
static com.google.protobuf.Parser<KeyData> |
KeyData.parser() |
| Modifier and Type | Method and Description |
|---|---|
Keyset.Key.Builder |
Keyset.Key.Builder.mergeKeyData(KeyData value)
Contains the actual, instantiation specific key proto.
|
static KeyData.Builder |
KeyData.newBuilder(KeyData prototype) |
Keyset.Key.Builder |
Keyset.Key.Builder.setKeyData(KeyData value)
Contains the actual, instantiation specific key proto.
|
| Modifier and Type | Method and Description |
|---|---|
static KeyHandle |
KeyHandle.createFromKey(KeyData keyData,
KeyTemplate.OutputPrefixType opt)
Deprecated.
Use the KeyHandle(TinkKey, KeyAccess) constructor instead.
|
| 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. |