| Package | Description |
|---|---|
| com.google.crypto.tink | |
| com.google.crypto.tink.internal | |
| com.google.crypto.tink.util |
| Modifier and Type | Method and Description |
|---|---|
static SecretKeyAccess |
InsecureSecretKeyAccess.get()
Returns a
SecretKeyAccess token. |
static SecretKeyAccess |
SecretKeyAccess.requireAccess(SecretKeyAccess access)
Throws an exception if the passed in
SecretKeyAccess is null, otherwise returns it. |
| Modifier and Type | Method and Description |
|---|---|
static KeysetHandle |
TinkProtoKeysetFormat.parseKeyset(byte[] serializedKeyset,
SecretKeyAccess access) |
static KeysetHandle |
TinkJsonProtoKeysetFormat.parseKeyset(String serializedKeyset,
SecretKeyAccess access) |
static SecretKeyAccess |
SecretKeyAccess.requireAccess(SecretKeyAccess access)
Throws an exception if the passed in
SecretKeyAccess is null, otherwise returns it. |
static byte[] |
TinkProtoKeysetFormat.serializeKeyset(KeysetHandle keysetHandle,
SecretKeyAccess access) |
static String |
TinkJsonProtoKeysetFormat.serializeKeyset(KeysetHandle keysetHandle,
SecretKeyAccess access) |
| Modifier and Type | Method and Description |
|---|---|
ProtoKeySerialization |
LegacyProtoKey.getSerialization(SecretKeyAccess access)
Returns the protokeyserialization with which this object was created.
|
abstract Key |
KeyParser.parseKey(SerializationT serialization,
SecretKeyAccess access)
Parses a serialization into a key.
|
Key |
KeyParser.KeyParsingFunction.parseKey(SerializationT serialization,
SecretKeyAccess access) |
<SerializationT extends Serialization> |
SerializationRegistry.parseKey(SerializationT serializedKey,
SecretKeyAccess access)
Parses the given serialization into a Key.
|
<SerializationT extends Serialization> |
MutableSerializationRegistry.parseKey(SerializationT serializedKey,
SecretKeyAccess access)
Parses the given serialization into a Key.
|
Key |
MutableSerializationRegistry.parseKeyWithLegacyFallback(ProtoKeySerialization protoKeySerialization,
SecretKeyAccess access)
Returns a Key object from a protoKeySerialization, even if no parser has been registered.
|
<KeyT extends Key,SerializationT extends Serialization> |
SerializationRegistry.serializeKey(KeyT key,
Class<SerializationT> serializationClass,
SecretKeyAccess access)
Serializes a given Key into a "SerializationT" object.
|
<KeyT extends Key,SerializationT extends Serialization> |
MutableSerializationRegistry.serializeKey(KeyT key,
Class<SerializationT> serializationClass,
SecretKeyAccess access)
Serializes a given Key into a "SerializationT" object.
|
abstract SerializationT |
KeySerializer.serializeKey(KeyT key,
SecretKeyAccess access) |
SerializationT |
KeySerializer.KeySerializationFunction.serializeKey(KeyT key,
SecretKeyAccess access) |
| Constructor and Description |
|---|
LegacyProtoKey(ProtoKeySerialization serialization,
SecretKeyAccess access)
Creates a new LegacyProtoKey object.
|
| Modifier and Type | Method and Description |
|---|---|
static SecretBytes |
SecretBytes.copyFrom(byte[] value,
SecretKeyAccess access)
Creates a new SecretBytes with the contents given in
value. |
static SecretBigInteger |
SecretBigInteger.fromBigInteger(BigInteger value,
SecretKeyAccess access)
Creates a new SecretBigInteger with the content given in
value. |
BigInteger |
SecretBigInteger.getBigInteger(SecretKeyAccess access)
Returns the value wrapped by this object.
|
byte[] |
SecretBytes.toByteArray(SecretKeyAccess access)
Returns a copy of the bytes wrapped by this object.
|