Class DefaultPrincipalBuilder
- java.lang.Object
-
- org.apache.kafka.common.security.auth.DefaultPrincipalBuilder
-
- All Implemented Interfaces:
Configurable
,PrincipalBuilder
@Deprecated public class DefaultPrincipalBuilder extends java.lang.Object implements PrincipalBuilder
Deprecated.As of Kafka 1.0.0. This will be removed in a future major release.DefaultPrincipalBuilder which return transportLayer's peer Principal
-
-
Constructor Summary
Constructors Constructor Description DefaultPrincipalBuilder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.security.Principal
buildPrincipal(org.apache.kafka.common.network.TransportLayer transportLayer, org.apache.kafka.common.network.Authenticator authenticator)
Deprecated.Returns Principal.void
close()
Deprecated.Closes this instance.void
configure(java.util.Map<java.lang.String,?> configs)
Deprecated.Configures this class with given key-value pairs.
-
-
-
Method Detail
-
configure
public void configure(java.util.Map<java.lang.String,?> configs)
Deprecated.Description copied from interface:PrincipalBuilder
Configures this class with given key-value pairs.- Specified by:
configure
in interfaceConfigurable
- Specified by:
configure
in interfacePrincipalBuilder
-
buildPrincipal
public java.security.Principal buildPrincipal(org.apache.kafka.common.network.TransportLayer transportLayer, org.apache.kafka.common.network.Authenticator authenticator) throws KafkaException
Deprecated.Description copied from interface:PrincipalBuilder
Returns Principal.- Specified by:
buildPrincipal
in interfacePrincipalBuilder
- Throws:
KafkaException
-
close
public void close() throws KafkaException
Deprecated.Description copied from interface:PrincipalBuilder
Closes this instance.- Specified by:
close
in interfacePrincipalBuilder
- Throws:
KafkaException
-
-