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

- 使用X509Identity的程序包
  程序包 | 说明
  --- | ---
  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中X509Identity的使用

    返回X509Identity的org.hyperledger.fabric.gateway中的方法
    限定符和类型 | 方法和说明
    --- | ---
    `static X509Identity` | Identities.`newX509Identity(String mspId, org.hyperledger.fabric.sdk.Enrollment enrollment)` Create a new X.509 identity from an enrollment returned from a Certificate Authority.
    `static X509Identity` | Identities.`newX509Identity(String mspId, X509Certificate certificate, PrivateKey privateKey)` Create a new identity using X.509 credentials.

Copyright © 2023. All rights reserved.