Package io.grpc.alts.internal
Class AltsInternalContext
- java.lang.Object
-
- io.grpc.alts.internal.AltsInternalContext
-
public final class AltsInternalContext extends java.lang.Object
AltsInternalContext contains security-related context information about an ALTs connection.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) AltsContext
context
-
Constructor Summary
Constructors Constructor Description AltsInternalContext(HandshakerResult result)
Create a new AltsInternalContext.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getApplicationProtocol()
Get application protocol.static AltsInternalContext
getDefaultInstance()
java.lang.String
getLocalServiceAccount()
Get local service account.java.util.Map<java.lang.String,java.lang.String>
getPeerAttributes()
Get peer attributes.RpcProtocolVersions
getPeerRpcVersions()
Get peer RPC versions.java.lang.String
getPeerServiceAccount()
Get peer service account.java.lang.String
getRecordProtocol()
Get negotiated record protocol.SecurityLevel
getSecurityLevel()
Get security level.
-
-
-
Field Detail
-
context
final AltsContext context
-
-
Constructor Detail
-
AltsInternalContext
public AltsInternalContext(HandshakerResult result)
Create a new AltsInternalContext.
-
-
Method Detail
-
getDefaultInstance
public static AltsInternalContext getDefaultInstance()
-
getApplicationProtocol
public java.lang.String getApplicationProtocol()
Get application protocol.- Returns:
- the context's application protocol.
-
getRecordProtocol
public java.lang.String getRecordProtocol()
Get negotiated record protocol.- Returns:
- the context's negotiated record protocol.
-
getSecurityLevel
public SecurityLevel getSecurityLevel()
Get security level.- Returns:
- the context's security level.
-
getPeerServiceAccount
public java.lang.String getPeerServiceAccount()
Get peer service account.- Returns:
- the context's peer service account.
-
getLocalServiceAccount
public java.lang.String getLocalServiceAccount()
Get local service account.- Returns:
- the context's local service account.
-
getPeerRpcVersions
public RpcProtocolVersions getPeerRpcVersions()
Get peer RPC versions.- Returns:
- the context's peer RPC versions.
-
getPeerAttributes
public java.util.Map<java.lang.String,java.lang.String> getPeerAttributes()
Get peer attributes.- Returns:
- the context's peer attributes.
-
-