## 接口的使用
org.hyperledger.fabric.gateway.Identity

- 使用Identity的程序包
  程序包 | 说明
  --- | ---
  org.hyperledger.fabric.gateway | This package provides the set of interfaces that enable a Java application to interact with a Fabric blockchain network.

- - ### org.hyperledger.fabric.gateway中Identity的使用

    org.hyperledger.fabric.gateway中Identity的子接口
    限定符和类型 | 接口和说明
    --- | ---
    `interface` | `X509Identity` Identity comprising an X.509 certificate and associated private key.

    返回Identity的org.hyperledger.fabric.gateway中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `Identity` | Wallet.`get(String label)` Get an identity from the wallet.
    `Identity` | Gateway.`getIdentity()` Get the identity associated with the gateway connection.

    参数类型为Identity的org.hyperledger.fabric.gateway中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `Gateway.Builder` | Gateway.Builder.`identity(Identity identity)` Specifies the identity that is to be used to connect to the network.
    `void` | Wallet.`put(String label, Identity identity)` Put an identity into the wallet.

Copyright © 2023. All rights reserved.