Class PravegaCredentialProvider
- java.lang.Object
-
- io.pravega.schemaregistry.serializer.shared.credentials.PravegaCredentialProvider
-
- All Implemented Interfaces:
io.pravega.schemaregistry.common.CredentialProvider
public class PravegaCredentialProvider extends java.lang.Object implements io.pravega.schemaregistry.common.CredentialProviderCredential provider that is a wrapper over and uses pravega credentials to authenticate to schema registry. This is to be used if users want to use the same credentials to authenticate to schema registry that they have used in pravega client. This can be achieved in one of two ways - 1. instantiate this class with Pravega client config and this will extract credentials from the client config. 2. instantiate this class without any credentials and it will extract credentials from the environment by creating a default clientconfig which loads the credentials from the environment variables or system properies. Refer toClientConfigto see how credentials are loaded from the environment.
-
-
Constructor Summary
Constructors Constructor Description PravegaCredentialProvider()PravegaCredentialProvider(io.pravega.client.ClientConfig pravegaClientConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMethod()java.lang.StringgetToken()
-