export declare const authenticateInputWithRpidAndAllowCredentials = "/*\n* Copyright 2018-2020 ForgeRock AS. All Rights Reserved\n*\n* Use of this code requires a commercial software license with ForgeRock AS.\n* or with one of its affiliates. All use shall be exclusively subject\n* to such license between the licensee and ForgeRock AS.\n*/\n\nif (!window.PublicKeyCredential) {\n document.getElementById('webAuthnOutcome').value = \"unsupported\";\n document.getElementById(\"loginButton_0\").click();\n}\n\nvar options = {\n rpId: \"example.com\",\n challenge: new Int8Array([14, 126, -110, -74, 64, -66, 20, -56, -40, -28, 116, -61, -128, -20, 72, 24, 42, 79, -105, 94, -84, -12, -17, -97, 105, -31, -30, 92, 55, 67, -83, 65]).buffer,\n timeout: 60000,\n allowCredentials: [{ type: \"public-key\", id: new Int8Array([-107, 93, 68, -67, -5, 107, 18, 16, -25, -30, 80, 103, -75, -53, -2, -95, 102, 42, 47, 126, -1, 85, 93, 45, -85, 8, -108, 107, 47, -25, 66, 12, -96, 81, 104, -127, 26, -59, -69, -23, 75, 89, 58, 124, -93, 4, 28, -128, 121, 35, 39, 103, -86, -86, 123, -67, -7, -4, 79, -49, 127, -19, 7, 4]).buffer }]\n};\n\nnavigator.credentials.get({ \"publicKey\" : options })\n .then(function (assertion) {\n var clientData = String.fromCharCode.apply(null, new Uint8Array(assertion.response.clientDataJSON));\n var authenticatorData = new Int8Array(assertion.response.authenticatorData).toString();\n var signature = new Int8Array(assertion.response.signature).toString();\n var rawId = assertion.id;\n var userHandle = String.fromCharCode.apply(null, new Uint8Array(assertion.response.userHandle));\n document.getElementById('webAuthnOutcome').value = clientData + \"::\" + authenticatorData + \"::\" + signature + \"::\" + rawId + \"::\" + userHandle;\n document.getElementById(\"loginButton_0\").click();\n }).catch(function (err) {\n document.getElementById('webAuthnOutcome').value = \"ERROR\" + \"::\" + err;\n document.getElementById(\"loginButton_0\").click();\n });"; export declare const authenticateInputWithRpidAllowCredentialsAndQuotes = "/*\n* Copyright 2018-2020 ForgeRock AS. All Rights Reserved\n*\n* Use of this code requires a commercial software license with ForgeRock AS.\n* or with one of its affiliates. All use shall be exclusively subject\n* to such license between the licensee and ForgeRock AS.\n*/\n\nif (!window.PublicKeyCredential) {\n document.getElementById('webAuthnOutcome').value = \"unsupported\";\n document.getElementById(\"loginButton_0\").click();\n}\n\nvar options = {\n \"rpId\": \"example.com\",\n \"challenge\": new Int8Array([14, 126, -110, -74, 64, -66, 20, -56, -40, -28, 116, -61, -128, -20, 72, 24, 42, 79, -105, 94, -84, -12, -17, -97, 105, -31, -30, 92, 55, 67, -83, 65]).buffer,\n \"timeout\": 60000,\n \"allowCredentials\": [{ \"type\": \"public-key\", \"id\": new Int8Array([-107, 93, 68, -67, -5, 107, 18, 16, -25, -30, 80, 103, -75, -53, -2, -95, 102, 42, 47, 126, -1, 85, 93, 45, -85, 8, -108, 107, 47, -25, 66, 12, -96, 81, 104, -127, 26, -59, -69, -23, 75, 89, 58, 124, -93, 4, 28, -128, 121, 35, 39, 103, -86, -86, 123, -67, -7, -4, 79, -49, 127, -19, 7, 4]).buffer }]\n};\n\nnavigator.credentials.get({ \"publicKey\" : options })\n .then(function (assertion) {\n var clientData = String.fromCharCode.apply(null, new Uint8Array(assertion.response.clientDataJSON));\n var authenticatorData = new Int8Array(assertion.response.authenticatorData).toString();\n var signature = new Int8Array(assertion.response.signature).toString();\n var rawId = assertion.id;\n var userHandle = String.fromCharCode.apply(null, new Uint8Array(assertion.response.userHandle));\n document.getElementById('webAuthnOutcome').value = clientData + \"::\" + authenticatorData + \"::\" + signature + \"::\" + rawId + \"::\" + userHandle;\n document.getElementById(\"loginButton_0\").click();\n }).catch(function (err) {\n document.getElementById('webAuthnOutcome').value = \"ERROR\" + \"::\" + err;\n document.getElementById(\"loginButton_0\").click();\n });"; export declare const authenticateInputWithoutRpidAndAllowCredentials = "/*\n* Copyright 2018-2020 ForgeRock AS. All Rights Reserved\n*\n* Use of this code requires a commercial software license with ForgeRock AS.\n* or with one of its affiliates. All use shall be exclusively subject\n* to such license between the licensee and ForgeRock AS.\n*/\n\nif (!window.PublicKeyCredential) {\n document.getElementById('webAuthnOutcome').value = \"unsupported\";\n document.getElementById(\"loginButton_0\").click();\n}\n\nvar options = {\n challenge: new Int8Array([14, 126, -110, -74, 64, -66, 20, -56, -40, -28, 116, -61, -128, -20, 72, 24, 42, 79, -105, 94, -84, -12, -17, -97, 105, -31, -30, 92, 55, 67, -83, 65]).buffer,\n timeout: 60000,\n};\n\nnavigator.credentials.get({ \"publicKey\" : options })\n .then(function (assertion) {\n var clientData = String.fromCharCode.apply(null, new Uint8Array(assertion.response.clientDataJSON));\n var authenticatorData = new Int8Array(assertion.response.authenticatorData).toString();\n var signature = new Int8Array(assertion.response.signature).toString();\n var rawId = assertion.id;\n var userHandle = String.fromCharCode.apply(null, new Uint8Array(assertion.response.userHandle));\n document.getElementById('webAuthnOutcome').value = clientData + \"::\" + authenticatorData + \"::\" + signature + \"::\" + rawId + \"::\" + userHandle;\n document.getElementById(\"loginButton_0\").click();\n }).catch(function (err) {\n document.getElementById('webAuthnOutcome').value = \"ERROR\" + \"::\" + err;\n document.getElementById(\"loginButton_0\").click();\n });"; export declare const authenticateInputWithAcceptableCredentialsWithoutRpid = "/*\n* Copyright 2018-2020 ForgeRock AS. All Rights Reserved\n*\n* Use of this code requires a commercial software license with ForgeRock AS.\n* or with one of its affiliates. All use shall be exclusively subject\n* to such license between the licensee and ForgeRock AS.\n*/\n\nif (!window.PublicKeyCredential) {\n document.getElementById('webAuthnOutcome').value = \"unsupported\";\n document.getElementById(\"loginButton_0\").click();\n}\n\nvar acceptableCredentials = [\n { \"type\": \"public-key\", \"id\": new Int8Array([1, 97, 2, 123, -105, -19, -106, 10, -86, 82, -23, 5, 52, 63, 103, 110, -71, 53, 107, 104, 76, -42, -49, 96, 67, -114, -97, 19, -59, 89, -102, -115, -110, -101, -6, -98, 39, -75, 2, 74, 23, -105, 67, 6, -112, 21, -3, 36, -114, 52, 35, 75, 74, 82, -8, 115, -128, -34, -105, 110, 124, 41, -79, -53, -90, 81, -11, -7, 91, -45, -67, -82, 106, 74, 30, 112, 100, -47, 54, -12, 95, 81, 97, 36, 123, -15, -91, 87, -82, 87, -45, -103, -80, 109, -111, 82, 109, 58, 50, 19, -21, -102, 54, -108, -68, 12, -101, -53, -65, 11, -94, -36, 112, -101, -95, -90, -118, 68, 13, 8, -49, -77, -28, -82, -97, 126, -71, 33, -58, 19, 58, -118, 36, -28, 22, -55, 64, -72, -80, -9, -48, -50, 58, -52, 64, -64, -27, -5, -12, 110, -95, -17]).buffer }\n];\n\nvar options = {\n\n challenge: new Int8Array([-42, -21, -101, -22, -35, 94, 14, 33, -75, -12, -113, 86, 109, -51, 62, 89, 29, 119, 48, -92, 33, -64, 102, -18, 18, -122, 73, 13, -17, -50, -22, -74]).buffer,\n timeout: 60000,\n userVerification: \"preferred\",\n allowCredentials: acceptableCredentials\n};\n\nnavigator.credentials.get({ \"publicKey\" : options })\n .then(function (assertion) {\n var clientData = String.fromCharCode.apply(null, new Uint8Array(assertion.response.clientDataJSON));\n var authenticatorData = new Int8Array(assertion.response.authenticatorData).toString();\n var signature = new Int8Array(assertion.response.signature).toString();\n var rawId = assertion.id;\n document.getElementById('webAuthnOutcome').value = clientData + \"::\" + authenticatorData + \"::\" + signature + \"::\" + rawId;\n document.getElementById(\"loginButton_0\").click();\n }).catch(function (err) {\n document.getElementById('webAuthnOutcome').value = \"ERROR\" + \"::\" + err;\n document.getElementById(\"loginButton_0\").click();\n });"; export declare const registerInputWithRpid = "/*\n * Copyright 2018-2020 ForgeRock AS. All Rights Reserved\n *\n * Use of this code requires a commercial software license with ForgeRock AS.\n * or with one of its affiliates. All use shall be exclusively subject\n * to such license between the licensee and ForgeRock AS.\n */\n\nif (!window.PublicKeyCredential) {\n document.getElementById('webAuthnOutcome').value = \"unsupported\";\n document.getElementById(\"loginButton_0\").click();\n}\n\nvar publicKey = {\n challenge: new Int8Array([102, -15, -36, -101, -95, 10, -20, 39, 29, 70, 122, 25, 53, 83, 72, -38, 83, -92, 31, -30, 26, -94, 92, -94, -83, 7, 82, -66, -125, -95, -4, -75]).buffer,\n // Relying Party:\n rp: {\n id: \"example.com\",\n name: \"ForgeRock\"\n },\n // User:\n user: {\n id: Uint8Array.from(\"NTdhNWI0ZTQtNjk5OS00YjQ1LWJmODYtYTRmMmU1ZDRiNjI5\", function (c) { return c.charCodeAt(0) }),\n name: \"57a5b4e4-6999-4b45-bf86-a4f2e5d4b629\",\n displayName: \"bob_lee-tester@me.co.uk\"\n },\n // Below pubKeyCredParams format represents AM 6.5\n pubKeyCredParams: [\n {\n type: \"public-key\",\n alg: -7\n }\n ,{\n type: \"public-key\",\n alg: -257\n }\n ],\n attestation: \"none\",\n timeout: 60000,\n excludeCredentials: [],\n authenticatorSelection: {\n userVerification: \"preferred\"\n authenticatorAttachment:\"cross-platform\"\n }\n};\n\nnavigator.credentials.create({publicKey: publicKey})\n .then(function (newCredentialInfo) {\n var rawId = newCredentialInfo.id;\n var clientData = String.fromCharCode.apply(null, new Uint8Array(newCredentialInfo.response.clientDataJSON));\n var keyData = new Int8Array(newCredentialInfo.response.attestationObject).toString();\n document.getElementById('webAuthnOutcome').value = clientData + \"::\" + keyData + \"::\" + rawId;\n document.getElementById(\"loginButton_0\").click();\n }).catch(function (err) {\n document.getElementById('webAuthnOutcome').value = \"ERROR\" + \"::\" + err;\n document.getElementById(\"loginButton_0\").click();\n });"; export declare const registerInputWithRpidAndQuotes = "/*\n * Copyright 2018-2020 ForgeRock AS. All Rights Reserved\n *\n * Use of this code requires a commercial software license with ForgeRock AS.\n * or with one of its affiliates. All use shall be exclusively subject\n * to such license between the licensee and ForgeRock AS.\n */\n\n if (!window.PublicKeyCredential) {\n document.getElementById('webAuthnOutcome').value = \"unsupported\";\n document.getElementById(\"loginButton_0\").click();\n }\n\n var publicKey = {\n \"challenge\": new Int8Array([102, -15, -36, -101, -95, 10, -20, 39, 29, 70, 122, 25, 53, 83, 72, -38, 83, -92, 31, -30, 26, -94, 92, -94, -83, 7, 82, -66, -125, -95, -4, -75]).buffer,\n // Relying Party:\n \"rp\": {\n \"id\": \"example.com\",\n \"name\": \"ForgeRock\"\n },\n // User:\n \"user\": {\n \"id\": Uint8Array.from(\"NTdhNWI0ZTQtNjk5OS00YjQ1LWJmODYtYTRmMmU1ZDRiNjI5\", function (c) { return c.charCodeAt(0) }),\n \"name\": \"57a5b4e4-6999-4b45-bf86-a4f2e5d4b629\",\n \"displayName\": \"bob_lee-tester@me.co.uk\"\n },\n \"pubKeyCredParams\": [ { \"type\": \"public-key\", \"alg\": -257 }, { \"type\": \"public-key\", \"alg\": -7 } ],\n \"attestation\": \"none\",\n \"timeout\": 60000,\n \"excludeCredentials\": [],\n \"authenticatorSelection\": {\"userVerification\":\"preferred\",\"authenticatorAttachment\":\"cross-platform\"}\n };\n\n navigator.credentials.create({publicKey: publicKey})\n .then(function (newCredentialInfo) {\n var rawId = newCredentialInfo.id;\n var clientData = String.fromCharCode.apply(null, new Uint8Array(newCredentialInfo.response.clientDataJSON));\n var keyData = new Int8Array(newCredentialInfo.response.attestationObject).toString();\n document.getElementById('webAuthnOutcome').value = clientData + \"::\" + keyData + \"::\" + rawId;\n document.getElementById(\"loginButton_0\").click();\n }).catch(function (err) {\n document.getElementById('webAuthnOutcome').value = \"ERROR\" + \"::\" + err;\n document.getElementById(\"loginButton_0\").click();\n });"; export declare const registerOutputWithRpid: { attestation: string; authenticatorSelection: { userVerification: string; authenticatorAttachment: string; }; challenge: never[]; pubKeyCredParams: { type: string; alg: number; }[]; rp: { id: string; name: string; }; timeout: number; user: { displayName: string; id: never[]; name: string; }; }; export declare const registerInputWithoutRpid = "/*\n * Copyright 2018-2020 ForgeRock AS. All Rights Reserved\n *\n * Use of this code requires a commercial software license with ForgeRock AS.\n * or with one of its affiliates. All use shall be exclusively subject\n * to such license between the licensee and ForgeRock AS.\n */\n\nif (!window.PublicKeyCredential) {\n document.getElementById('webAuthnOutcome').value = \"unsupported\";\n document.getElementById(\"loginButton_0\").click();\n}\n\nvar publicKey = {\n challenge: new Int8Array([102, -15, -36, -101, -95, 10, -20, 39, 29, 70, 122, 25, 53, 83, 72, -38, 83, -92, 31, -30, 26, -94, 92, -94, -83, 7, 82, -66, -125, -95, -4, -75]).buffer,\n // Relying Party:\n rp: {\n name: \"ForgeRock\"\n },\n // User:\n user: {\n id: Uint8Array.from(\"NTdhNWI0ZTQtNjk5OS00YjQ1LWJmODYtYTRmMmU1ZDRiNjI5\", function (c) { return c.charCodeAt(0) }),\n name: \"57a5b4e4-6999-4b45-bf86-a4f2e5d4b629\",\n displayName: \"Bob Tester\"\n },\n pubKeyCredParams: [ { \"type\": \"public-key\", \"alg\": -257 }, { \"type\": \"public-key\", \"alg\": -7 } ],\n attestation: \"none\",\n timeout: 60000,\n excludeCredentials: [],\n authenticatorSelection: {\"userVerification\":\"preferred\"}\n};\n\nnavigator.credentials.create({publicKey: publicKey})\n .then(function (newCredentialInfo) {\n var rawId = newCredentialInfo.id;\n var clientData = String.fromCharCode.apply(null, new Uint8Array(newCredentialInfo.response.clientDataJSON));\n var keyData = new Int8Array(newCredentialInfo.response.attestationObject).toString();\n document.getElementById('webAuthnOutcome').value = clientData + \"::\" + keyData + \"::\" + rawId;\n document.getElementById(\"loginButton_0\").click();\n }).catch(function (err) {\n document.getElementById('webAuthnOutcome').value = \"ERROR\" + \"::\" + err;\n document.getElementById(\"loginButton_0\").click();\n });"; export declare const registerOutputWithoutRpid: { attestation: string; authenticatorSelection: { userVerification: string; }; challenge: never[]; pubKeyCredParams: { type: string; alg: number; }[]; rp: { name: string; }; timeout: number; user: { displayName: string; id: never[]; name: string; }; }; export declare const registerInputWithExcludeCreds = "/*\n * Copyright 2018-2020 ForgeRock AS. All Rights Reserved\n *\n * Use of this code requires a commercial software license with ForgeRock AS.\n * or with one of its affiliates. All use shall be exclusively subject\n * to such license between the licensee and ForgeRock AS.\n */\n\nif (!window.PublicKeyCredential) {\n document.getElementById('webAuthnOutcome').value = \"unsupported\";\n document.getElementById(\"loginButton_0\").click();\n}\n\nvar publicKey = {\n challenge: new Int8Array([102, -15, -36, -101, -95, 10, -20, 39, 29, 70, 122, 25, 53, 83, 72, -38, 83, -92, 31, -30, 26, -94, 92, -94, -83, 7, 82, -66, -125, -95, -4, -75]).buffer,\n // Relying Party:\n rp: {\n name: \"ForgeRock\"\n },\n // User:\n user: {\n id: Uint8Array.from(\"NTdhNWI0ZTQtNjk5OS00YjQ1LWJmODYtYTRmMmU1ZDRiNjI5\", function (c) { return c.charCodeAt(0) }),\n name: \"57a5b4e4-6999-4b45-bf86-a4f2e5d4b629\",\n displayName: \"Bob Tester\"\n },\n pubKeyCredParams: [ { \"type\": \"public-key\", \"alg\": -257 }, { \"type\": \"public-key\", \"alg\": -7 } ],\n attestation: \"none\",\n timeout: 60000,\n excludeCredentials: [{ \"type\": \"public-key\", \"id\": new Int8Array([49, -96, -107, 113, 106, 5, 115, 22, 68, 121, -85, -27, 8, -58, -113, 127, -105, -37, -10, -12, -58, -25, 29, -82, -18, 69, -99, 125, 33, 82, 38, -66, -27, -128, -91, -86, 87, 68, 94, 0, -78, 70, -11, -70, -14, -53, 38, -60, 46, 27, 66, 46, 21, -125, -70, 123, -46, -124, 86, -2, 102, 70, -52, 54]).buffer },{ \"type\": \"public-key\", \"id\": new Int8Array([64, 17, -15, -123, -21, 127, 76, -120, 90, -112, -5, 54, 105, 93, 82, -104, -79, 107, -69, -3, -113, -94, -59, -4, 126, -33, 117, 32, -44, 122, -97, 8, -112, 105, -96, 96, 90, 44, -128, -121, 107, 79, -98, -68, -93, 11, -105, -47, 102, 13, 110, 84, 59, -91, -30, 37, -3, -22, 39, 111, -10, 87, -50, -35]).buffer }],\n authenticatorSelection: {\"userVerification\":\"preferred\"}\n};\n\nnavigator.credentials.create({publicKey: publicKey})\n .then(function (newCredentialInfo) {\n var rawId = newCredentialInfo.id;\n var clientData = String.fromCharCode.apply(null, new Uint8Array(newCredentialInfo.response.clientDataJSON));\n var keyData = new Int8Array(newCredentialInfo.response.attestationObject).toString();\n document.getElementById('webAuthnOutcome').value = clientData + \"::\" + keyData + \"::\" + rawId;\n document.getElementById(\"loginButton_0\").click();\n }).catch(function (err) {\n document.getElementById('webAuthnOutcome').value = \"ERROR\" + \"::\" + err;\n document.getElementById(\"loginButton_0\").click();\n });"; export declare const registerOutputWithExcludeCreds: { attestation: string; authenticatorSelection: { userVerification: string; }; challenge: never[]; excludeCredentials: { type: string; id: string; }[]; pubKeyCredParams: { type: string; alg: number; }[]; rp: { name: string; }; timeout: number; user: { displayName: string; id: never[]; name: string; }; }; export declare const authenticateInputWithRpidAndAllowCredentialsAndAllowRecoveryCode = "/*\n * Copyright 2018-2022 ForgeRock AS. All Rights Reserved\n *\n * Use of this code requires a commercial software license with ForgeRock AS.\n * or with one of its affiliates. All use shall be exclusively subject\n * to such license between the licensee and ForgeRock AS.\n */\n\nif (!window.PublicKeyCredential) {\n document.getElementById('webAuthnOutcome').value = \"unsupported\";\n document.getElementById(\"loginButton_0\").click();\n}\n\nvar options = {\n\n challenge: new Int8Array([-17, -117, -10, 120, -90, 127, 70, -73, 114, -37, -94, 126, -96, -111, -65, 78, -84, 53, 74, -18, 93, 102, 24, -77, -97, -6, -106, -10, -101, -29, 36, -33]).buffer,\n timeout: 60000,\n userVerification: \"preferred\",\n allowCredentials: [{ \"type\": \"public-key\", \"id\": new Int8Array([-33, 59, -68, 121, 57, -27, -33, -40, 55, 8, -65, -15, -40, -103, 73, 61, 49, 56, 65, -84, -27, -86, -103, -115, 15, 43, -64, -60, -105, 81, -111, 115, 105, 111, -105, 64, 73, 55, -35, 35, 38, 59, -91, 95, 64, 30, -10, -6, -91, -59, 26, 19, -3, 2, -39, 71, 112, 124, -66, -89, -10, -35, 122, 103]).buffer }]\n};\n\nnavigator.credentials.get({ \"publicKey\" : options })\n .then(function (assertion) {\n var clientData = String.fromCharCode.apply(null, new Uint8Array(assertion.response.clientDataJSON));\n var authenticatorData = new Int8Array(assertion.response.authenticatorData).toString();\n var signature = new Int8Array(assertion.response.signature).toString();\n var rawId = assertion.id;\n var userHandle = String.fromCharCode.apply(null, new Uint8Array(assertion.response.userHandle));\n document.getElementById('webAuthnOutcome').value = clientData + \"::\" + authenticatorData + \"::\" + signature + \"::\" + rawId + \"::\" + userHandle;\n document.getElementById(\"loginButton_0\").click();\n }).catch(function (err) {\n document.getElementById('webAuthnOutcome').value = \"ERROR\" + \"::\" + err;\n var allowRecoveryCode = 'true' === \"true\";\n if (allowRecoveryCode) {\n var loginButton = document.getElementById(\"loginButton_0\");\n if (loginButton) {\n var prev = loginButton.previousElementSibling;\n if (prev && prev.nodeName == \"DIV\") {\n prev.getElementsByTagName(\"div\")[0].innerHTML = \" \"\n + err + \"\";\n }\n }\n } else {\n document.getElementById(\"loginButton_0\").click();\n }\n });\n"; //# sourceMappingURL=script-text.mock.data.d.ts.map