@wildboar/pkcs
Version:
Public Key Cryptography Standard PDUs in TypeScript
100 lines • 3.77 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._encode_TokenFlags = exports._decode_TokenFlags = exports.eidCompliant = exports.TokenFlags_eidCompliant = exports.prnGeneration = exports.TokenFlags_prnGeneration = exports.loginRequired = exports.TokenFlags_loginRequired = exports.readonly = exports.TokenFlags_readonly = void 0;
const $ = require("asn1-ts/dist/node/functional");
/* END_OF_SYMBOL_DEFINITION TokenFlags */
/* START_OF_SYMBOL_DEFINITION TokenFlags_readonly */
/**
* @summary TokenFlags_readonly
* @constant
*/
exports.TokenFlags_readonly = 0; /* LONG_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION TokenFlags_readonly */
/* START_OF_SYMBOL_DEFINITION readonly */
/**
* @summary readonly
* @constant
*/
exports.readonly = exports.TokenFlags_readonly; /* SHORT_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION readonly */
/* START_OF_SYMBOL_DEFINITION TokenFlags_loginRequired */
/**
* @summary TokenFlags_loginRequired
* @constant
*/
exports.TokenFlags_loginRequired = 1; /* LONG_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION TokenFlags_loginRequired */
/* START_OF_SYMBOL_DEFINITION loginRequired */
/**
* @summary loginRequired
* @constant
*/
exports.loginRequired = exports.TokenFlags_loginRequired; /* SHORT_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION loginRequired */
/* START_OF_SYMBOL_DEFINITION TokenFlags_prnGeneration */
/**
* @summary TokenFlags_prnGeneration
* @constant
*/
exports.TokenFlags_prnGeneration = 2; /* LONG_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION TokenFlags_prnGeneration */
/* START_OF_SYMBOL_DEFINITION prnGeneration */
/**
* @summary prnGeneration
* @constant
*/
exports.prnGeneration = exports.TokenFlags_prnGeneration; /* SHORT_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION prnGeneration */
/* START_OF_SYMBOL_DEFINITION TokenFlags_eidCompliant */
/**
* @summary TokenFlags_eidCompliant
* @constant
*/
exports.TokenFlags_eidCompliant = 3; /* LONG_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION TokenFlags_eidCompliant */
/* START_OF_SYMBOL_DEFINITION eidCompliant */
/**
* @summary eidCompliant
* @constant
*/
exports.eidCompliant = exports.TokenFlags_eidCompliant; /* SHORT_NAMED_BIT */
/* END_OF_SYMBOL_DEFINITION eidCompliant */
/* START_OF_SYMBOL_DEFINITION _cached_decoder_for_TokenFlags */
let _cached_decoder_for_TokenFlags = null;
/* END_OF_SYMBOL_DEFINITION _cached_decoder_for_TokenFlags */
/* START_OF_SYMBOL_DEFINITION _decode_TokenFlags */
/**
* @summary Decodes an ASN.1 element into a(n) TokenFlags
* @function
* @param {_Element} el The element being decoded.
* @returns {TokenFlags} The decoded data structure.
*/
function _decode_TokenFlags(el) {
if (!_cached_decoder_for_TokenFlags) {
_cached_decoder_for_TokenFlags = $._decodeBitString;
}
return _cached_decoder_for_TokenFlags(el);
}
exports._decode_TokenFlags = _decode_TokenFlags;
/* END_OF_SYMBOL_DEFINITION _decode_TokenFlags */
/* START_OF_SYMBOL_DEFINITION _cached_encoder_for_TokenFlags */
let _cached_encoder_for_TokenFlags = null;
/* END_OF_SYMBOL_DEFINITION _cached_encoder_for_TokenFlags */
/* START_OF_SYMBOL_DEFINITION _encode_TokenFlags */
/**
* @summary Encodes a(n) TokenFlags into an ASN.1 Element.
* @function
* @param {value} el The element being decoded.
* @param elGetter A function that can be used to get new ASN.1 elements.
* @returns {_Element} The TokenFlags, encoded as an ASN.1 Element.
*/
function _encode_TokenFlags(value, elGetter) {
if (!_cached_encoder_for_TokenFlags) {
_cached_encoder_for_TokenFlags = $._encodeBitString;
}
return _cached_encoder_for_TokenFlags(value, elGetter);
}
exports._encode_TokenFlags = _encode_TokenFlags;
/* END_OF_SYMBOL_DEFINITION _encode_TokenFlags */
/* eslint-enable */
//# sourceMappingURL=TokenFlags.ta.js.map