Package io.pravega.schemaregistry.client
Class SchemaRegistryClientConfig
- java.lang.Object
-
- io.pravega.schemaregistry.client.SchemaRegistryClientConfig
-
public class SchemaRegistryClientConfig extends java.lang.ObjectRegistry client configuration used to create registry client.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSchemaRegistryClientConfig.SchemaRegistryClientConfigBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SchemaRegistryClientConfig.SchemaRegistryClientConfigBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetCertificate()If the trust store is a certificate file, typically DER or PEM file.io.pravega.schemaregistry.common.CredentialProvidergetCredentialProvider()CredentialProvider to be used for authentication and authorization.java.net.URIgetSchemaRegistryUri()URI for connecting with registry client.java.lang.StringgetTrustStore()java.lang.StringgetTrustStorePassword()Password for the trust store.java.lang.StringgetTrustStoreType()Type of key store used as the trust store - e.g.inthashCode()booleanisAuthEnabled()Flag to indicate if authentication is enabled.booleanisValidateHostName()Flag to indicate whether client should perform host name validation in server authentication certificate.java.lang.StringtoString()
-
-
-
Method Detail
-
builder
public static SchemaRegistryClientConfig.SchemaRegistryClientConfigBuilder builder()
-
getSchemaRegistryUri
public java.net.URI getSchemaRegistryUri()
URI for connecting with registry client.
-
isAuthEnabled
public boolean isAuthEnabled()
Flag to indicate if authentication is enabled.
-
getCredentialProvider
public io.pravega.schemaregistry.common.CredentialProvider getCredentialProvider()
CredentialProvider to be used for authentication and authorization.
-
getTrustStore
public java.lang.String getTrustStore()
-
getTrustStoreType
public java.lang.String getTrustStoreType()
Type of key store used as the trust store - e.g. jks, pkcs11, pkcs12, dks etc. If not specified then either certificate (if configured) or default java TLS store as specified in system properties would be used.
-
getTrustStorePassword
public java.lang.String getTrustStorePassword()
Password for the trust store. Defaults to null.
-
getCertificate
public java.lang.String getCertificate()
If the trust store is a certificate file, typically DER or PEM file.
-
isValidateHostName
public boolean isValidateHostName()
Flag to indicate whether client should perform host name validation in server authentication certificate.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-