UNPKG

@sap/xssec

Version:

XS Advanced Container Security API for node.js

56 lines (47 loc) 1.33 kB
const XsuaaSecurityContext = require("./XsuaaSecurityContext"); /** * @typedef {import("../context/SecurityContext")} SecurityContext * @typedef {import("../service/XsaService")} XsaService * @typedef {import("../token/XsaToken")} XsaToken */ /** @extends {XsuaaSecurityContext} */ class XsaSecurityContext extends XsuaaSecurityContext { /** * * @param {XsaService} service * @param {XsaToken} token * @param {*} contextConfig */ constructor(service, token, contextConfig) { super(service, token, contextConfig); } /** * The Service instance on which this SecurityContext has been created. * @returns {XsaService} service */ get service() { return super.service; } /** * @deprecated Use the constructor to set the Service instance. * @param {XsaService} service */ set service(service) { super.service = service; } /** * The Token instance from which this SecurityContext has ben created. * @returns {XsaToken} token */ get token() { return super.token; } /** * @deprecated Use the constructor to set the Token instance. * @param {XsaToken} token */ set token(token) { super.token = token; } } module.exports = XsaSecurityContext;