Class ITSCertificateBuilder

java.lang.Object
org.bouncycastle.its.ITSCertificateBuilder
Direct Known Subclasses:
ITSExplicitCertificateBuilder, ITSImplicitCertificateBuilder

public class ITSCertificateBuilder extends Object
  • Field Details

    • tbsCertificateBuilder

      protected final org.bouncycastle.oer.its.ieee1609dot2.ToBeSignedCertificate.Builder tbsCertificateBuilder
    • issuer

      protected final ITSCertificate issuer
    • version

      protected org.bouncycastle.oer.its.ieee1609dot2.basetypes.UINT8 version
    • cracaId

      protected org.bouncycastle.oer.its.ieee1609dot2.basetypes.HashedId3 cracaId
    • crlSeries

      protected org.bouncycastle.oer.its.ieee1609dot2.basetypes.CrlSeries crlSeries
  • Constructor Details

    • ITSCertificateBuilder

      public ITSCertificateBuilder(org.bouncycastle.oer.its.ieee1609dot2.ToBeSignedCertificate.Builder tbsCertificateBuilder)
    • ITSCertificateBuilder

      public ITSCertificateBuilder(ITSCertificate issuer, org.bouncycastle.oer.its.ieee1609dot2.ToBeSignedCertificate.Builder tbsCertificateBuilder)
  • Method Details

    • getIssuer

      public ITSCertificate getIssuer()
    • setVersion

      public ITSCertificateBuilder setVersion(int version)
      set the version - default value is 3.
      Parameters:
      version - certificate version.
      Returns:
      the current builder.
    • setCracaId

      public ITSCertificateBuilder setCracaId(byte[] cracaId)
      Set the cracaId. The default value for the field is 000000'H in line with ETSI TS 103 097 V1.4.1 (2020-10) default/constraint - Section 6.
      Parameters:
      cracaId - hashedId for the craca, the ID of the CRL manager.
      Returns:
      the current builder.
    • setCrlSeries

      public ITSCertificateBuilder setCrlSeries(int crlSeries)
      Set the crlSeries. The default value for the field is 0'D in line with ETSI TS 103 097 V1.4.1 (2020-10) default/constraint - Section 6.
      Parameters:
      crlSeries - id for the CRL series for revocation.
      Returns:
      the current builder.
    • setValidityPeriod

      public ITSCertificateBuilder setValidityPeriod(ITSValidityPeriod validityPeriod)
    • setCertIssuePermissions

      public ITSCertificateBuilder setCertIssuePermissions(org.bouncycastle.oer.its.ieee1609dot2.PsidGroupPermissions... permissions)
    • setAppPermissions

      public ITSCertificateBuilder setAppPermissions(org.bouncycastle.oer.its.ieee1609dot2.basetypes.PsidSsp... psidSsps)