UNPKG

@softvision/webpdf-wsclient-typescript

Version:

A simplified and optimized API client library for the webPDF server

121 lines 5.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.OIDCMetadata = void 0; class OIDCMetadata { constructor(data) { let authorization_endpointDefault = ""; this.authorizationEndpoint = typeof data.authorization_endpoint !== "undefined" ? data.authorization_endpoint : authorization_endpointDefault; let claims_supportedDefault = []; this.claimsSupported = typeof (data === null || data === void 0 ? void 0 : data.claims_supported) !== "undefined" ? data === null || data === void 0 ? void 0 : data.claims_supported : claims_supportedDefault; let grant_types_supportedDefault = []; this.grantTypesSupported = typeof (data === null || data === void 0 ? void 0 : data.grant_types_supported) !== "undefined" ? data === null || data === void 0 ? void 0 : data.grant_types_supported : grant_types_supportedDefault; let id_token_signing_alg_values_supportedDefault = []; this.idTokenSigningAlgValuesSupported = typeof data.id_token_signing_alg_values_supported !== "undefined" ? data.id_token_signing_alg_values_supported : id_token_signing_alg_values_supportedDefault; let issuerDefault = ""; this.issuer = typeof data.issuer !== "undefined" ? data.issuer : issuerDefault; let jwks_uriDefault = ""; this.jwksUri = typeof data.jwks_uri !== "undefined" ? data.jwks_uri : jwks_uriDefault; let response_types_supportedDefault = []; this.responseTypesSupported = typeof data.response_types_supported !== "undefined" ? data.response_types_supported : response_types_supportedDefault; let scopes_supportedDefault = []; this.scopesSupported = typeof (data === null || data === void 0 ? void 0 : data.scopes_supported) !== "undefined" ? data === null || data === void 0 ? void 0 : data.scopes_supported : scopes_supportedDefault; let subject_types_supportedDefault = []; this.subjectTypesSupported = typeof data.subject_types_supported !== "undefined" ? data.subject_types_supported : subject_types_supportedDefault; let token_endpointDefault = ""; this.tokenEndpoint = typeof data.token_endpoint !== "undefined" ? data.token_endpoint : token_endpointDefault; let userinfo_endpointDefault = ""; this.userinfoEndpoint = typeof (data === null || data === void 0 ? void 0 : data.userinfo_endpoint) !== "undefined" ? data === null || data === void 0 ? void 0 : data.userinfo_endpoint : userinfo_endpointDefault; } static getAuthorizationEndpointDefault() { return ""; } static getAuthorizationEndpointDescription() { return ""; } static getClaimsSupportedDefault() { return []; } static getClaimsSupportedDescription() { return ""; } static getGrantTypesSupportedDefault() { return []; } static getGrantTypesSupportedDescription() { return ""; } static getIdTokenSigningAlgValuesSupportedDefault() { return []; } static getIdTokenSigningAlgValuesSupportedDescription() { return ""; } static getIssuerDefault() { return ""; } static getIssuerDescription() { return ""; } static getJwksUriDefault() { return ""; } static getJwksUriDescription() { return ""; } static getResponseTypesSupportedDefault() { return []; } static getResponseTypesSupportedDescription() { return ""; } static getScopesSupportedDefault() { return []; } static getScopesSupportedDescription() { return ""; } static getSubjectTypesSupportedDefault() { return []; } static getSubjectTypesSupportedDescription() { return ""; } static getTokenEndpointDefault() { return ""; } static getTokenEndpointDescription() { return ""; } static getUserinfoEndpointDefault() { return ""; } static getUserinfoEndpointDescription() { return ""; } static fromJson(data) { if (data === undefined || data === null) { return data; } return new OIDCMetadata(data); } toJson() { return { 'authorization_endpoint': this.authorizationEndpoint, 'claims_supported': this.claimsSupported, 'grant_types_supported': this.grantTypesSupported, 'id_token_signing_alg_values_supported': this.idTokenSigningAlgValuesSupported, 'issuer': this.issuer, 'jwks_uri': this.jwksUri, 'response_types_supported': this.responseTypesSupported, 'scopes_supported': this.scopesSupported, 'subject_types_supported': this.subjectTypesSupported, 'token_endpoint': this.tokenEndpoint, 'userinfo_endpoint': this.userinfoEndpoint, }; } clone() { return OIDCMetadata.fromJson(this.toJson()); } } exports.OIDCMetadata = OIDCMetadata; //# sourceMappingURL=OIDCMetadata.js.map