public class ConfluentPrincipal extends KafkaPrincipal
Modifier and Type | Field and Description |
---|---|
static String |
GROUP_TYPE |
ANONYMOUS, USER_TYPE
Constructor and Description |
---|
ConfluentPrincipal(String principalType,
String name,
String authenticationId) |
ConfluentPrincipal(String principalType,
String name,
String authenticationId,
boolean delegationTokenAuthenticated) |
ConfluentPrincipal(String principalType,
String name,
String authenticationId,
Optional<String> networkId,
boolean delegationTokenAuthenticated,
Set<String> groups) |
ConfluentPrincipal(String principalType,
String name,
String authenticationId,
Optional<String> networkId,
boolean delegationTokenAuthenticated,
Set<String> groups,
List<String> authorizationIds)
authorizationIds: Contains list of ids used in authorization.
|
Modifier and Type | Method and Description |
---|---|
String |
authenticationId()
Returns the public credential (e.g.
|
List<String> |
authorizationIds()
Returns list of ids which will be used to authorize to request.
|
Set<String> |
getGroups()
Returns the principal groups if provided during authentication.
|
Optional<String> |
networkId()
Returns the networkId if available, where the authentication request originated from.
|
equals, getName, getPrincipalType, hashCode, tokenAuthenticated, tokenAuthenticated, toString
public static final String GROUP_TYPE
public ConfluentPrincipal(String principalType, String name, String authenticationId)
public ConfluentPrincipal(String principalType, String name, String authenticationId, boolean delegationTokenAuthenticated)
public ConfluentPrincipal(String principalType, String name, String authenticationId, Optional<String> networkId, boolean delegationTokenAuthenticated, Set<String> groups)
public ConfluentPrincipal(String principalType, String name, String authenticationId, Optional<String> networkId, boolean delegationTokenAuthenticated, Set<String> groups, List<String> authorizationIds)
public String authenticationId()
public Optional<String> networkId()
public List<String> authorizationIds()