Class VdsHeader.Builder

  • Enclosing class:
    VdsHeader

    public static class VdsHeader.Builder
    extends Object
    • Constructor Detail

      • Builder

        public Builder​(String vdsType)
    • Method Detail

      • setSignerCertRef

        public VdsHeader.Builder setSignerCertRef​(X509Certificate x509Cert,
                                                  boolean setIssuingCountryFromX509Cert)
        Get signerIdentifier and certificateReference from given X509Certificate.
        Parameters:
        x509Cert - X509Certificate to get the signerIdentifier and the certificateReference from
        setIssuingCountryFromX509Cert - If true also build the issuing country code base an the X509Certificate. It will take the Country code 'C' and convert it to a 3-letter country code.
        Returns:
        updated Builder instance