@InterfaceAudience.Private public class SecurityInfo extends Object
Constructor and Description |
---|
SecurityInfo(String serverPrincipal,
AuthenticationProtos.TokenIdentifier.Kind tokenKind) |
Modifier and Type | Method and Description |
---|---|
static void |
addInfo(String serviceName,
SecurityInfo securityInfo)
Adds a security configuration for a new service name.
|
static SecurityInfo |
getInfo(String serviceName)
Returns the security configuration associated with the given service name.
|
String |
getServerPrincipal() |
AuthenticationProtos.TokenIdentifier.Kind |
getTokenKind() |
public SecurityInfo(String serverPrincipal, AuthenticationProtos.TokenIdentifier.Kind tokenKind)
public static void addInfo(String serviceName, SecurityInfo securityInfo)
public static SecurityInfo getInfo(String serviceName)
public String getServerPrincipal()
public AuthenticationProtos.TokenIdentifier.Kind getTokenKind()