Class PravegaCredentialProvider

  • All Implemented Interfaces:
    io.pravega.schemaregistry.common.CredentialProvider

    public class PravegaCredentialProvider
    extends java.lang.Object
    implements io.pravega.schemaregistry.common.CredentialProvider
    Credential 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 to ClientConfig to see how credentials are loaded from the environment.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface io.pravega.schemaregistry.common.CredentialProvider

        io.pravega.schemaregistry.common.CredentialProvider.DefaultCredentialProvider
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMethod()  
      java.lang.String getToken()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • PravegaCredentialProvider

        public PravegaCredentialProvider​(io.pravega.client.ClientConfig pravegaClientConfig)
      • PravegaCredentialProvider

        public PravegaCredentialProvider()
    • Method Detail

      • getMethod

        public java.lang.String getMethod()
        Specified by:
        getMethod in interface io.pravega.schemaregistry.common.CredentialProvider
      • getToken

        public java.lang.String getToken()
        Specified by:
        getToken in interface io.pravega.schemaregistry.common.CredentialProvider