class AltsAuthContext {

  public AltsAuthContext(HandshakerResult result) {
    context =
        AltsContext.newBuilder()
            .setApplicationProtocol(result.getApplicationProtocol())
            .setRecordProtocol(result.getRecordProtocol())
            // TODO: Set security level based on the handshaker result.
            .setSecurityLevel(SecurityLevel.INTEGRITY_AND_PRIVACY)
            .setPeerServiceAccount(result.getPeerIdentity().getServiceAccount())
            .setLocalServiceAccount(result.getLocalIdentity().getServiceAccount())
            .setPeerRpcVersions(result.getPeerRpcVersions())
            .build();
  }

  public  AltsAuthContext(HandshakerResult result);

}