Class SignedData

java.lang.Object
org.bouncycastle.asn1.ASN1Object
org.ofdrw.gm.sm2strut.SignedData
All Implemented Interfaces:
org.bouncycastle.asn1.ASN1Encodable, org.bouncycastle.util.Encodable

public final class SignedData extends org.bouncycastle.asn1.ASN1Object
GMT 35275-2017 8.1 signedData 类型

signedData 数据类型由任意类型的数据和至少一个签名者的签名值组成。 任意类型的数据能够同时被任意数量的签名者签名。

Since:
2021-08-02 19:02:57
Author:
权观宇
  • Field Details

    • VERSION_1

      public static final org.bouncycastle.asn1.ASN1Integer VERSION_1
  • Constructor Details

    • SignedData

      public SignedData(org.bouncycastle.asn1.ASN1Set digestAlgorithms, ContentInfo contentInfo, org.bouncycastle.asn1.ASN1Set certificates, org.bouncycastle.asn1.ASN1Set signerInfos)
    • SignedData

      public SignedData(org.bouncycastle.asn1.ASN1Sequence seq)
  • Method Details

    • getInstance

      public static SignedData getInstance(Object o)
    • getVersion

      public org.bouncycastle.asn1.ASN1Integer getVersion()
    • setVersion

      public SignedData setVersion(org.bouncycastle.asn1.ASN1Integer version)
    • getDigestAlgorithms

      public org.bouncycastle.asn1.ASN1Set getDigestAlgorithms()
    • setDigestAlgorithms

      public SignedData setDigestAlgorithms(org.bouncycastle.asn1.ASN1Set digestAlgorithms)
    • getContentInfo

      public ContentInfo getContentInfo()
    • setContentInfo

      public SignedData setContentInfo(ContentInfo contentInfo)
    • getCertificates

      public org.bouncycastle.asn1.ASN1Set getCertificates()
    • setCertificates

      public SignedData setCertificates(org.bouncycastle.asn1.ASN1Set certificates)
    • getCrls

      public org.bouncycastle.asn1.ASN1Set getCrls()
    • setCrls

      public SignedData setCrls(org.bouncycastle.asn1.ASN1Set crls)
    • getSignerInfos

      public org.bouncycastle.asn1.ASN1Set getSignerInfos()
    • setSignerInfos

      public SignedData setSignerInfos(org.bouncycastle.asn1.ASN1Set signerInfos)
    • getSignCert

      public org.bouncycastle.asn1.x509.Certificate getSignCert(IssuerAndSerialNumber iaSn)
      获取签名证书
      Parameters:
      iaSn - 证书颁发者DN和序列号
      Returns:
      证书实体,不存在返回null
    • toASN1Primitive

      public org.bouncycastle.asn1.ASN1Primitive toASN1Primitive()
      Specified by:
      toASN1Primitive in interface org.bouncycastle.asn1.ASN1Encodable
      Specified by:
      toASN1Primitive in class org.bouncycastle.asn1.ASN1Object