接口 IronPen


public interface IronPen
名称源自《国家宝藏1》

Created by davidoff shen on 2017-04-20.

  • 方法概要

    修饰符和类型
    方法
    说明
    byte[]
    sign(byte[] content, String algorithm, String keyId)
    签名
    boolean
    verify(byte[] content, byte[] signature, String algorithm, String keyId)
    验签
  • 方法详细资料

    • sign

      byte[] sign(byte[] content, String algorithm, String keyId)
      签名
      参数:
      content - content
      algorithm - algorithm
      keyId - keyId
      返回:
      签名
    • verify

      boolean verify(byte[] content, byte[] signature, String algorithm, String keyId)
      验签
      参数:
      content - content
      signature - signature
      algorithm - algorithm
      keyId - keyId
      返回:
      验签是否正确