Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 1x 1x 8x 8x 8x 1x | import { IncomingMessage, ServerResponse } from 'http'; import { CookieToken, SSOMethod } from '../interfaces'; import { CtxtHandle } from '../..'; export abstract class ServerContextHandleManager { req!: IncomingMessage; res!: ServerResponse; getCookieToken(req: IncomingMessage, res: ServerResponse): CookieToken { this.req = req; this.res = res; return ''; } abstract waitForReleased(cookieToken: CookieToken): Promise<void>; abstract getMethod(cookieToken: CookieToken): SSOMethod; abstract setMethod(ssoMethod: SSOMethod, cookieToken: CookieToken): void; abstract getHandle(cookieToken: CookieToken): CtxtHandle | undefined; abstract setHandle(contextHandle: CtxtHandle, cookieToken: CookieToken): void; /** * At the end of the negotiation this method MUST be called to release the context handle. * * @abstract * @param {CookieToken} cookieToken * @memberof ServerContextHandleManager */ abstract release(cookieToken: CookieToken): void; } |