Skip to content

Commit 30d5b45

Browse files
authored
[Cert. Ext.] Decoding the MasaURL (1.3.6.1.5.5.7.1.32) certificate extension value
1 parent 584ab90 commit 30d5b45

File tree

2 files changed

+16
-10
lines changed

2 files changed

+16
-10
lines changed

kse/src/main/java/org/kse/crypto/x509/X509Ext.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,8 @@ public String getStringValue() throws IOException {
276276
return getBiometricInfoStringValue(octets);
277277
case QC_STATEMENTS:
278278
return getQcStatementsStringValue(octets);
279+
case MASA_URL:
280+
return getIA5String(octets);
279281
case OCSP_NO_CHECK:
280282
return getOcspNoCheckStringValue();
281283
case LIABILITY_LIMITATION_FLAG:

kse/src/main/java/org/kse/crypto/x509/X509ExtensionType.java

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ public enum X509ExtensionType {
251251

252252

253253
// ////////////////////////////////
254-
// RFC3739 QC PRIVATE EXTENSIONS
254+
// RFC 3739 QC PRIVATE EXTENSIONS
255255
// ////////////////////////////////
256256

257257
/** Stores biometric information for authentication purposes. */
@@ -260,9 +260,20 @@ public enum X509ExtensionType {
260260
/** Indicates that the certificate is a Qualified Certificate in accordance with a particular legal system. */
261261
QC_STATEMENTS("1.3.6.1.5.5.7.1.3", "QCStatements"),
262262

263+
// ////////////////////////////////
264+
// RFC 3709 Logotypes
265+
// ////////////////////////////////
266+
267+
LOGO_TYPE("1.3.6.1.5.5.7.1.12", "LogoType"),
268+
269+
// ////////////////////////////////
270+
// RFC 8995 Bootstrapping Remote Secure Key Infrastructure (BRSKI)
271+
// ////////////////////////////////
272+
273+
MASA_URL("1.3.6.1.5.5.7.1.32", "MasaURL"),
263274

264275
// ////////////////////////////////
265-
// RFC2560 PRIVATE EXTENSIONS
276+
// RFC 2560 Online Certificate Status Protocol (OCSP) PRIVATE EXTENSIONS
266277
// ////////////////////////////////
267278

268279
/** A CA specifies by including this extension in the certificate of an OCSP responder that the requester can trust
@@ -306,19 +317,12 @@ public enum X509ExtensionType {
306317

307318

308319
// ////////////////////////////////
309-
// RFC 3851
320+
// RFC 3851 S/MIME
310321
// ////////////////////////////////
311322

312323
SMIME_CAPABILITIES("1.2.840.113549.1.9.15", "SMIMECapabilities"),
313324

314325

315-
// ////////////////////////////////
316-
// RFC 3709
317-
// ////////////////////////////////
318-
319-
LOGO_TYPE("1.3.6.1.5.5.7.1.12", "LogoType"),
320-
321-
322326
// ////////////////////////////////
323327
// SET (Secure Electronic Transaction)
324328
// ////////////////////////////////

0 commit comments

Comments
 (0)