Class AltsInternalContext

java.lang.Object
io.grpc.alts.internal.AltsInternalContext

public final class AltsInternalContext extends Object
AltsInternalContext contains security-related context information about an ALTs connection.
  • Field Details

  • Constructor Details

    • AltsInternalContext

      public AltsInternalContext(HandshakerResult result)
      Create a new AltsInternalContext.
  • Method Details

    • getDefaultInstance

      public static AltsInternalContext getDefaultInstance()
    • getApplicationProtocol

      public String getApplicationProtocol()
      Get application protocol.
      Returns:
      the context's application protocol.
    • getRecordProtocol

      public 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 String getPeerServiceAccount()
      Get peer service account.
      Returns:
      the context's peer service account.
    • getLocalServiceAccount

      public 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 Map<String,String> getPeerAttributes()
      Get peer attributes.
      Returns:
      the context's peer attributes.