Enum Class CertAlgorithmTypeEnum

java.lang.Object
java.lang.Enum<CertAlgorithmTypeEnum>
com.ijpay.wxpay.enums.v3.CertAlgorithmTypeEnum
所有已实现的接口:
Serializable, Comparable<CertAlgorithmTypeEnum>, Constable

public enum CertAlgorithmTypeEnum extends Enum<CertAlgorithmTypeEnum>

IJPay 让支付触手可及,封装了微信支付、支付宝支付、银联支付等常用的支付方式以及各种常用的接口。

不依赖任何第三方 mvc 框架,仅仅作为工具使用简单快速完成支付模块的开发,可轻松嵌入到任何系统里。

IJPay 交流群: 723992875、864988890

Node.js 版: https://gitee.com/javen205/TNWX

获取微信平台证书算法类型枚举

作者:
Javen
  • 枚举常量详细资料

  • 方法详细资料

    • values

      public static CertAlgorithmTypeEnum[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static CertAlgorithmTypeEnum valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • getCode

      public String getCode()
    • getName

      public String getName()
    • getCertUrl

      public static String getCertUrl(WxDomainEnum domainEnum, CertAlgorithmTypeEnum typeEnum)
      获取证书地址
      参数:
      domainEnum - 域名枚举
      typeEnum - 算法类型枚举
      返回:
      返回结果
    • getCertSuffixUrl

      public static String getCertSuffixUrl(String code)
      获取证书地址后缀
      参数:
      code - 算法类型
      返回:
      返回结果
    • getCertSuffixUrl

      public static String getCertSuffixUrl(CertAlgorithmTypeEnum typeEnum)
      获取证书地址后缀
      参数:
      typeEnum - 算法类型
      返回:
      返回结果