@ExperimentalApi(value="https://github.com/grpc/grpc-java/issues/7864")
public final class AltsContext
extends java.lang.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(java.lang.String peerServiceAccount,
java.lang.String localServiceAccount)
Creates an
AltsContext for testing purposes. |
java.lang.String |
getLocalServiceAccount()
Get local service account.
|
java.lang.String |
getPeerServiceAccount()
Get peer service account.
|
AltsContext.SecurityLevel |
getSecurityLevel()
Get security level.
|
public static AltsContext createTestInstance(java.lang.String peerServiceAccount, java.lang.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 java.lang.String getPeerServiceAccount()
public java.lang.String getLocalServiceAccount()