UNPKG

@sap/xssec

Version:

XS Advanced Container Security API for node.js

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