123456789101112131415161718192021222324 |
- /*
- * Copyright 2018 Scytl Secure Electronic Voting SA
- *
- * All rights reserved
- *
- * See our extended copyright notice in *file 'Copyright.txt' which is part of this source code package
- */
- /* jshint node:true */
- 'use strict';
- module.exports = BasicConstraints;
- /**
- * @class BasicConstraints
- * @classdesc Encapsulates the basic constraints of an X.509 certificate. This
- * object is instantiated internally by the method
- * {@link CertificateService.newX509Certificate} and made available
- * as a property of the returned {@link X509Certificate} object.
- * @property {boolean} ca <code>true</code> if the CA flag is set,
- * <code>false</code> otherwise.
- */
- function BasicConstraints(constraints) {
- return Object.freeze({ca: constraints.cA});
- }
|