Skip to content
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ private static OidTreeNode createDsCertificateExtensionTree() {
entry("22", "expirationDate"),
entry("23", "instructionCode"),
entry("24", "invalidityDate"),
entry("27", "deltaCRLIndicator"),
entry("28", "issuingDistributionPoint"),
entry("29", "certificateIssuer"),
entry("30", "nameConstraints"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,16 @@ This file is part of the iText (R) project.
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.AuthorityInfoAccessCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.AuthorityKeyIdentifierCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.BasicConstraintsCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.CertificateIssuerCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.CertificatePoliciesCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.CrlDistributionPointsCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.CrlNumberCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.CrlReasonCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.DeltaCrlIndicatorCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.ExtKeyUsageCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.FreshestCrlCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.InvalidityDateCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.IssuerAltNameCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.KeyUsageCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.SubjectKeyIdentifierCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.TimeStampCorrector;
Expand Down Expand Up @@ -221,6 +228,10 @@ public final class OidCorrectorMapper {
BasicConstraintsCorrector.OID,
BasicConstraintsCorrector.INSTANCE
),
Map.entry(
CertificateIssuerCorrector.OID,
CertificateIssuerCorrector.INSTANCE
),
Map.entry(
CertificatePoliciesCorrector.OID,
CertificatePoliciesCorrector.INSTANCE
Expand All @@ -229,10 +240,34 @@ public final class OidCorrectorMapper {
CrlDistributionPointsCorrector.OID,
CrlDistributionPointsCorrector.INSTANCE
),
Map.entry(
CrlNumberCorrector.OID,
CrlNumberCorrector.INSTANCE
),
Map.entry(
CrlReasonCorrector.OID,
CrlReasonCorrector.INSTANCE
),
Map.entry(
DeltaCrlIndicatorCorrector.OID,
DeltaCrlIndicatorCorrector.INSTANCE
),
Map.entry(
ExtKeyUsageCorrector.OID,
ExtKeyUsageCorrector.INSTANCE
),
Map.entry(
FreshestCrlCorrector.OID,
FreshestCrlCorrector.INSTANCE
),
Map.entry(
InvalidityDateCorrector.OID,
InvalidityDateCorrector.INSTANCE
),
Map.entry(
IssuerAltNameCorrector.OID,
IssuerAltNameCorrector.INSTANCE
),
Map.entry(
KeyUsageCorrector.OID,
KeyUsageCorrector.INSTANCE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ This file is part of the iText (R) project.
import com.itextpdf.rups.view.itext.treenodes.asn1.AbstractAsn1TreeNode;
import com.itextpdf.rups.view.itext.treenodes.asn1.Asn1TaggedObjectTreeNode;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.AbstractCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions.CrlReasonCorrector;

import org.bouncycastle.asn1.ASN1BitString;
import org.bouncycastle.asn1.ASN1GeneralizedTime;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2026 Apryse Group NV
Authors: Apryse Software.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation with the addition of the
following permission added to Section 15 as permitted in Section 7(a):
FOR ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY
APRYSE GROUP. APRYSE GROUP DISCLAIMS THE WARRANTY OF NON INFRINGEMENT
OF THIRD PARTY RIGHTS

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program; if not, see http://www.gnu.org/licenses or write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA, 02110-1301 USA, or download the license from the following URL:
http://itextpdf.com/terms-of-use/

The interactive user interfaces in modified source and object code versions
of this program must display Appropriate Legal Notices, as required under
Section 5 of the GNU Affero General Public License.

In accordance with Section 7(b) of the GNU Affero General Public License,
a covered work must retain the producer line in every PDF that is created
or manipulated using iText.

You can be released from the requirements of the license by purchasing
a commercial license. Buying such a license is mandatory as soon as you
develop commercial activities involving the iText software without
disclosing the source code of your own applications.
These activities include: offering paid services to customers as an ASP,
serving PDFs on the fly in a web application, shipping iText with a closed
source product.

For more information, please contact iText Software Corp. at this
address: sales@itextpdf.com
*/
package com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions;

import com.itextpdf.rups.view.itext.treenodes.asn1.AbstractAsn1TreeNode;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.AbstractCorrector;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.GeneralNamesCorrector;

import org.bouncycastle.asn1.ASN1Primitive;

/**
* Corrector for the certificateIssuer extension, as it is defined in RFC 5280.
*
* <pre>
* CertificateIssuer ::= GeneralNames
* </pre>
*/
public final class CertificateIssuerCorrector extends AbstractCorrector {
/**
* Singleton instance of the corrector.
*/
public static final CertificateIssuerCorrector INSTANCE = new CertificateIssuerCorrector();

private CertificateIssuerCorrector() {
// singleton class
}

/**
* OBJECT IDENTIFIER for the type, which is handled by the corrector.
*/
public static final String OID = "2.5.29.29";

/**
* {@inheritDoc}
*/
@Override
public String getDefaultVariableName() {
return "certificateIssuer";
}

/**
* {@inheritDoc}
*/
@Override
public void correct(AbstractAsn1TreeNode node, ASN1Primitive obj, String variableName) {
GeneralNamesCorrector.INSTANCE.correct(node, obj, variableName);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2026 Apryse Group NV
Authors: Apryse Software.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation with the addition of the
following permission added to Section 15 as permitted in Section 7(a):
FOR ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY
APRYSE GROUP. APRYSE GROUP DISCLAIMS THE WARRANTY OF NON INFRINGEMENT
OF THIRD PARTY RIGHTS

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program; if not, see http://www.gnu.org/licenses or write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA, 02110-1301 USA, or download the license from the following URL:
http://itextpdf.com/terms-of-use/

The interactive user interfaces in modified source and object code versions
of this program must display Appropriate Legal Notices, as required under
Section 5 of the GNU Affero General Public License.

In accordance with Section 7(b) of the GNU Affero General Public License,
a covered work must retain the producer line in every PDF that is created
or manipulated using iText.

You can be released from the requirements of the license by purchasing
a commercial license. Buying such a license is mandatory as soon as you
develop commercial activities involving the iText software without
disclosing the source code of your own applications.
These activities include: offering paid services to customers as an ASP,
serving PDFs on the fly in a web application, shipping iText with a closed
source product.

For more information, please contact iText Software Corp. at this
address: sales@itextpdf.com
*/
package com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions;

import com.itextpdf.rups.view.itext.treenodes.asn1.AbstractAsn1TreeNode;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.AbstractCorrector;

import org.bouncycastle.asn1.ASN1Integer;
import org.bouncycastle.asn1.ASN1Primitive;

/**
* Corrector for the crlNumber extension, as it is defined in RFC 5280.
*
* <pre>
* CRLNumber ::= INTEGER (0..MAX)
* </pre>
*/
public final class CrlNumberCorrector extends AbstractCorrector {
/**
* Singleton instance of the corrector.
*/
public static final CrlNumberCorrector INSTANCE = new CrlNumberCorrector();

private CrlNumberCorrector() {
// singleton class
}

/**
* OBJECT IDENTIFIER for the type, which is handled by the corrector.
*/
public static final String OID = "2.5.29.20";

/**
* {@inheritDoc}
*/
@Override
public String getDefaultVariableName() {
return "crlNumber";
}

/**
* {@inheritDoc}
*/
@Override
public void correct(AbstractAsn1TreeNode node, ASN1Primitive obj, String variableName) {
correctPrimitiveUniversalType(node, obj, ASN1Integer.class, variableName);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ This file is part of the iText (R) project.
For more information, please contact iText Software Corp. at this
address: sales@itextpdf.com
*/
package com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509;
package com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions;

import com.itextpdf.rups.view.itext.treenodes.asn1.AbstractAsn1TreeNode;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.AbstractCorrector;
Expand Down Expand Up @@ -78,6 +78,11 @@ private CrlReasonCorrector() {
// singleton class
}

/**
* OBJECT IDENTIFIER for the type, which is handled by the corrector.
*/
public static final String OID = "2.5.29.21";

/**
* {@inheritDoc}
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/*
This file is part of the iText (R) project.
Copyright (c) 1998-2026 Apryse Group NV
Authors: Apryse Software.

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License version 3
as published by the Free Software Foundation with the addition of the
following permission added to Section 15 as permitted in Section 7(a):
FOR ANY PART OF THE COVERED WORK IN WHICH THE COPYRIGHT IS OWNED BY
APRYSE GROUP. APRYSE GROUP DISCLAIMS THE WARRANTY OF NON INFRINGEMENT
OF THIRD PARTY RIGHTS

This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program; if not, see http://www.gnu.org/licenses or write to
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA, 02110-1301 USA, or download the license from the following URL:
http://itextpdf.com/terms-of-use/

The interactive user interfaces in modified source and object code versions
of this program must display Appropriate Legal Notices, as required under
Section 5 of the GNU Affero General Public License.

In accordance with Section 7(b) of the GNU Affero General Public License,
a covered work must retain the producer line in every PDF that is created
or manipulated using iText.

You can be released from the requirements of the license by purchasing
a commercial license. Buying such a license is mandatory as soon as you
develop commercial activities involving the iText software without
disclosing the source code of your own applications.
These activities include: offering paid services to customers as an ASP,
serving PDFs on the fly in a web application, shipping iText with a closed
source product.

For more information, please contact iText Software Corp. at this
address: sales@itextpdf.com
*/
package com.itextpdf.rups.view.itext.treenodes.asn1.correctors.x509.extensions;

import com.itextpdf.rups.view.itext.treenodes.asn1.AbstractAsn1TreeNode;
import com.itextpdf.rups.view.itext.treenodes.asn1.correctors.AbstractCorrector;

import org.bouncycastle.asn1.ASN1Primitive;

/**
* Corrector for the deltaCRLIndicator extension, as it is defined in RFC 5280.
*
* <pre>
* BaseCRLNumber ::= CRLNumber
* </pre>
*/
public final class DeltaCrlIndicatorCorrector extends AbstractCorrector {
/**
* Singleton instance of the corrector.
*/
public static final DeltaCrlIndicatorCorrector INSTANCE = new DeltaCrlIndicatorCorrector();

private DeltaCrlIndicatorCorrector() {
// singleton class
}

/**
* OBJECT IDENTIFIER for the type, which is handled by the corrector.
*/
public static final String OID = "2.5.29.27";

/**
* {@inheritDoc}
*/
@Override
public String getDefaultVariableName() {
return "baseCRLNumber";
}

/**
* {@inheritDoc}
*/
@Override
public void correct(AbstractAsn1TreeNode node, ASN1Primitive obj, String variableName) {
CrlNumberCorrector.INSTANCE.correct(node, obj, variableName);
}
}
Loading
Loading