org.hyperledger.fabric.gateway

## 接口 X509Identity

- 所有超级接口:
    Identity

      public interface X509Identity
      extends Identity

  Identity comprising an X.509 certificate and associated private key. Instances are created using `Identities.newX509Identity(String, X509Certificate, PrivateKey)`.

- - ### 方法概要

    所有方法 实例方法 抽象方法
    限定符和类型 | 方法和说明
    --- | ---
    `X509Certificate` | `getCertificate()` Get the certificate for this identity.
    `PrivateKey` | `getPrivateKey()` Get the private key for this identity.

    - ### 从接口继承的方法 org.hyperledger.fabric.gateway.Identity

      `getMspId`

- - ### 方法详细资料

    - #### getCertificate

          X509Certificate getCertificate()

      Get the certificate for this identity.
      返回:
        An X.509 certificate.

    - #### getPrivateKey

          PrivateKey getPrivateKey()

      Get the private key for this identity.
      返回:
        A private key.

Copyright © 2023. All rights reserved.