Package io.grpc.alts
Class AltsContext
java.lang.Object
io.grpc.alts.AltsContext
@ExperimentalApi("https://github.com/grpc/grpc-java/issues/7864")
public final class AltsContext
extends Object
AltsContext
contains security-related information on the ALTS channel.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
SecurityLevel of the ALTS channel. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AltsContext
createTestInstance
(String peerServiceAccount, String localServiceAccount) Creates anAltsContext
for testing purposes.Get local service account.Get peer service account.Get security level.
-
Field Details
-
wrapped
-
-
Constructor Details
-
AltsContext
AltsContext(AltsInternalContext wrapped)
-
-
Method Details
-
createTestInstance
Creates anAltsContext
for testing purposes.- Parameters:
peerServiceAccount
- the peer service account of the to be createdAltsContext
localServiceAccount
- the local service account of the to be createdAltsContext
- Returns:
- the created
AltsContext
-
getSecurityLevel
Get security level.- Returns:
- the context's security level.
-
getPeerServiceAccount
Get peer service account.- Returns:
- the context's peer service account.
-
getLocalServiceAccount
Get local service account.- Returns:
- the context's local service account.
-