public final class LocalKmsClient extends Object implements com.google.crypto.tink.KmsClient
KmsClient for testing.| Modifier and Type | Field and Description |
|---|---|
static String |
PREFIX
The prefix of all keys stored in Local KMS.
|
| Constructor and Description |
|---|
LocalKmsClient(String uri,
String secret) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
doesSupport(String uri) |
com.google.crypto.tink.Aead |
getAead(String uri) |
com.google.crypto.tink.KmsClient |
withCredentials(String credentialPath)
Loads credentials from a properties file.
|
com.google.crypto.tink.KmsClient |
withDefaultCredentials()
Loads default credentials.
|
public static final String PREFIX
public LocalKmsClient(String uri, String secret) throws GeneralSecurityException
GeneralSecurityExceptionpublic boolean doesSupport(String uri)
doesSupport in interface com.google.crypto.tink.KmsClientPREFIX, or the client is a specific one that is bound to the key
identified by uri.@CanIgnoreReturnValue public com.google.crypto.tink.KmsClient withCredentials(String credentialPath) throws GeneralSecurityException
withCredentials in interface com.google.crypto.tink.KmsClientGeneralSecurityException - if the client initialization fails@CanIgnoreReturnValue
public com.google.crypto.tink.KmsClient withDefaultCredentials()
throws GeneralSecurityException
withDefaultCredentials in interface com.google.crypto.tink.KmsClientGeneralSecurityException - if the client initialization failspublic com.google.crypto.tink.Aead getAead(String uri) throws GeneralSecurityException
getAead in interface com.google.crypto.tink.KmsClientGeneralSecurityExceptionCopyright © 2026 Confluent, Inc.. All rights reserved.