@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/7864") public final class AltsContext extends Object
AltsContext contains security-related information on the ALTS channel.| Modifier and Type | Class and Description |
|---|---|
static class |
AltsContext.SecurityLevel
SecurityLevel of the ALTS channel.
|
| Modifier and Type | Method and Description |
|---|---|
static AltsContext |
createTestInstance(String peerServiceAccount,
String localServiceAccount)
Creates an
AltsContext for testing purposes. |
String |
getLocalServiceAccount()
Get local service account.
|
String |
getPeerServiceAccount()
Get peer service account.
|
AltsContext.SecurityLevel |
getSecurityLevel()
Get security level.
|
public static AltsContext createTestInstance(String peerServiceAccount, String localServiceAccount)
AltsContext for testing purposes.peerServiceAccount - the peer service account of the to be created AltsContextlocalServiceAccount - the local service account of the to be created AltsContextAltsContextpublic AltsContext.SecurityLevel getSecurityLevel()
public String getPeerServiceAccount()
public String getLocalServiceAccount()