{"openapi":"3.0.0","info":{"version":"1.0.0","title":"API Seguridad - Prevencion Fraudes","description":"API Seguridad correspondiente a la solicitud de llaves para el cifrado y descifrado de datos sensibles."},"servers":[{"url":"https://dev-api.bancoazteca.com.mx:8080/operaciones-baz/prevencion-fraudes/seguridad/v1"}],"security":[{"Bearer":[]}],"paths":{"/aplicaciones/llaves":{"get":{"summary":"Genera id de acceso y llaves para manejo de información sensible.","description":"Generar llaves simétricas para el cifrado y descifrado de datos sensibles","tags":["Seguridad"],"operationId":"LlavesAsimetricas","responses":{"200":{"description":"Operación exitosa","content":{"application/json":{"schema":{"$ref":"#/components/schemas/respuestaGeneraLlaves"},"example":"{\n  \"mensaje\": \"Operación exitosa\",\n  \"folio\": \"891bf816-59f2-4345-ba7f-366980f36c31\",\n  \"resultado\": {\n    \"idAcceso\": \"1000\",\n    \"accesoPublico\": \"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC0yEoiMglEQQGXd2PGe3J/5jEBzgUMcmQgq5XkHrAuQ+VcZrziXfhm4SivIOVDDGnYoMMgoPSkc18A4S2FcjX4cn9C0CpwVIxX6GKcM5m3D4sTZQsFWXZQrsAZWhV4DNDpNy1KQBaTQ9iSFLLrY7S7hC1dkSxANq6ej9+VjBqzFwIDAQAB\",\n    \"accesoPrivado\": \"MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALTISiIyCURBAZd3Y8Z7cn/mMQHOBQxyZCCrleQesC5D5VxmvOJd+GbhKK8g5UMMadigwyCg9KRzXwDhLYVyNfhyf0LQKnBUjFfoYpwzmbcPixNlCwVZdlCuwBlaFXgM0Ok3LUpAFpND2JIUsutjtLuELV2RLEA2rp6P35WMGrMXAgMBAAECgYBzhExCn4BmWbd/pq1dxcH7UgbcpV16f5nVem7UDnv7hC0KJyfo6azxaEyL41Q7zLHR15/3uIG6l3IMaNain8E1xk7gzI/Wbaa9ifQ5KXqYMrteRh+vkVt7xc/ePfv72xeq8Qdy+49iX1Xl5Ba7eoKm5Ka1i6108Dyb5IMfKmg5mQJBANuRqN+ym+0WqYBjN3qGoaJdsFP6LTS4Ax/LHRe4qQe+peE73yDPZ/+vWMKgrIAv/B8qTyoCoRzFVw6WS/cMg8MCQQDSxySVKhhWI9/CbkdsqvqYCgdOL2sC7/iwGTe3bxTyk21ogAm3IE1UlEtPx/lAohN17F6DaVEQD0P9PgqNcsIdAkEAhR/YauDI50PBO2Vsgq5UG7SALzpU5EzZIBKvLe25FkgCHQCG9UarQHvY7hAq5oGxdFfbrZXwhxgjA2Ye4sfErwJAcVWhJw+ubEr32wz/HMBG5I+n4/N9P+QWvWGh4uE4y0JYdvM5xhz5V7wxTqHBNW6wthy1qUVs0AzVSwscE3icRQJBALy9QCFc7spNHgqz6ACZ1nJM1z8c/h4MHWYYYlCWLe5r5T7dO3GG3yeAAG2qzVZjnMQp5Jq9Qq3UWTXveXVD0KY=\",\n    \"accesoSimetrico\": \"jilUCZBQp8uow2zNMHKMYp7Twzx05pk6EjwTssx+3lQ=\",\n    \"codigoAutentificacionHash\": \"3876afa78689a954e45012feb95707e178d50d74edbad3ba0c0b6bc9e8fc63cc\"\n  }\n}"}}},"500":{"description":"Error interno del servidor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespuestaGeneral500"},"example":"{\n  \"codigo\": \"500.Operaciones-Baz-Prevencion-Fraudes-Seguridad.500001\",\n  \"mensaje\": \"Error interno del servidor\",\n  \"folio\": \"891bf816-59f2-4345-ba7f-366980f36c31\",\n  \"info\": \"https://baz-developer.bancoazteca.com.mx/info#500.Operaciones-Baz-Prevencion-Fraudes-Seguridad.500001\",\n  \"detalles\": [\n    \"Error interno del servidor\"\n  ]\n}"}}}},"security":[{"Bearer":[]}]}},"/aplicaciones/llaves/{id}":{"get":{"tags":["Seguridad"],"summary":"Consulta de contra-parte de llaves para manejo de información sensible.","description":"Obtener  llaves simétricas para el cifrado y descifrado de datos sensibles","operationId":"LlavesSimetricas","parameters":[{"in":"path","name":"id","description":"`Identificador de acceso que se obtiene de la API de Seguridad`\n","required":true,"schema":{"type":"string","default":"5fd8fbd28e8604119a9ba14c"}}],"responses":{"200":{"description":"Operación exitosa","content":{"application/json":{"schema":{"$ref":"#/components/schemas/respuestaObtieneLlaves"},"example":"{\n  \"mensaje\": \"Operación exitosa\",\n  \"folio\": \"891bf816-59f2-4345-ba7f-366980f36c31\",\n  \"resultado\": {\n    \"accesoPublico\": \"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC0yEoiMglEQQGXd2PGe3J/5jEBzgUMcmQgq5XkHrAuQ+VcZrziXfhm4SivIOVDDGnYoMMgoPSkc18A4S2FcjX4cn9C0CpwVIxX6GKcM5m3D4sTZQsFWXZQrsAZWhV4DNDpNy1KQBaTQ9iSFLLrY7S7hC1dkSxANq6ej9+VjBqzFwIDAQAB\",\n    \"accesoPrivado\": \"MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALTISiIyCURBAZd3Y8Z7cn/mMQHOBQxyZCCrleQesC5D5VxmvOJd+GbhKK8g5UMMadigwyCg9KRzXwDhLYVyNfhyf0LQKnBUjFfoYpwzmbcPixNlCwVZdlCuwBlaFXgM0Ok3LUpAFpND2JIUsutjtLuELV2RLEA2rp6P35WMGrMXAgMBAAECgYBzhExCn4BmWbd/pq1dxcH7UgbcpV16f5nVem7UDnv7hC0KJyfo6azxaEyL41Q7zLHR15/3uIG6l3IMaNain8E1xk7gzI/Wbaa9ifQ5KXqYMrteRh+vkVt7xc/ePfv72xeq8Qdy+49iX1Xl5Ba7eoKm5Ka1i6108Dyb5IMfKmg5mQJBANuRqN+ym+0WqYBjN3qGoaJdsFP6LTS4Ax/LHRe4qQe+peE73yDPZ/+vWMKgrIAv/B8qTyoCoRzFVw6WS/cMg8MCQQDSxySVKhhWI9/CbkdsqvqYCgdOL2sC7/iwGTe3bxTyk21ogAm3IE1UlEtPx/lAohN17F6DaVEQD0P9PgqNcsIdAkEAhR/YauDI50PBO2Vsgq5UG7SALzpU5EzZIBKvLe25FkgCHQCG9UarQHvY7hAq5oGxdFfbrZXwhxgjA2Ye4sfErwJAcVWhJw+ubEr32wz/HMBG5I+n4/N9P+QWvWGh4uE4y0JYdvM5xhz5V7wxTqHBNW6wthy1qUVs0AzVSwscE3icRQJBALy9QCFc7spNHgqz6ACZ1nJM1z8c/h4MHWYYYlCWLe5r5T7dO3GG3yeAAG2qzVZjnMQp5Jq9Qq3UWTXveXVD0KY=\",\n    \"accesoSimetrico\": \"jilUCZBQp8uow2zNMHKMYp7Twzx05pk6EjwTssx+3lQ=\",\n    \"codigoAutentificacionHash\": \"3876afa78689a954e45012feb95707e178d50d74edbad3ba0c0b6bc9e8fc63cc\"\n  }\n}"}}},"400":{"description":"Sin autorización","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespuestaGeneral400"},"example":"{\n  \"codigo\": \"400.Operaciones-Baz-Prevencion-Fraudes-Seguridad.400001\",\n  \"mensaje\": \"Petición incorrecta\",\n  \"folio\": \"891bf816-59f2-4345-ba7f-366980f36c31\",\n  \"info\": \"https://baz-developer.bancoazteca.com.mx/info#400.Operaciones-Baz-Prevencion-Fraudes-Seguridad.400001\",\n  \"detalles\": [\n    \"Parámetro Autorización es requerido\"\n  ]\n}"}}},"404":{"description":"Sin datos encontrados","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespuestaGeneral404"},"example":"{\n  \"codigo\": \"404.Operaciones-Baz-Prevencion-Fraudes-Seguridad.404001\",\n  \"mensaje\": \"Sin datos encontrados\",\n  \"folio\": \"891bf816-59f2-4345-ba7f-366980f36c31\",\n  \"info\": \"https://baz-developer.bancoazteca.com.mx/info#404.Operaciones-Baz-Prevencion-Fraudes-Seguridad.404001\",\n  \"detalles\": [\n    \"Sin datos encontrados\"\n  ]\n}"}}},"500":{"description":"Error interno del servidor","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RespuestaGeneral500"},"example":"{\n  \"codigo\": \"500.Operaciones-Baz-Prevencion-Fraudes-Seguridad.500001\",\n  \"mensaje\": \"Error interno del servidor\",\n  \"folio\": \"891bf816-59f2-4345-ba7f-366980f36c31\",\n  \"info\": \"https://baz-developer.bancoazteca.com.mx/info#500.Operaciones-Baz-Prevencion-Fraudes-Seguridad.500001\",\n  \"detalles\": [\n    \"Error interno del servidor\"\n  ]\n}"}}}},"security":[{"Bearer":[]}]}}},"components":{"schemas":{"respuestaGeneraLlaves":{"type":"object","properties":{"mensaje":{"type":"string","description":"Descripción de la operación","example":"Operación Exitosa."},"folio":{"type":"string","description":"Número de folio de la operación","example":"17920190617173411592"},"resultado":{"type":"object","properties":{"idAcceso":{"type":"string","description":"Identificador de acceso generado","example":"1000"},"accesoPublico":{"type":"string","description":"Llave pública para cifrar","example":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC0yEoiMglEQQGXd2PGe3J/5jEBzgUMcmQgq5XkHrAuQ+VcZrziXfhm4SivIOVDDGnYoMMgoPSkc18A4S2FcjX4cn9C0CpwVIxX6GKcM5m3D4sTZQsFWXZQrsAZWhV4DNDpNy1KQBaTQ9iSFLLrY7S7hC1dkSxANq6ej9+VjBqzFwIDAQAB"},"accesoPrivado":{"type":"string","description":"Llave Privada para descifrar","example":"MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALTISiIyCURBAZd3Y8Z7cn/mMQHOBQxyZCCrleQesC5D5VxmvOJd+GbhKK8g5UMMadigwyCg9KRzXwDhLYVyNfhyf0LQKnBUjFfoYpwzmbcPixNlCwVZdlCuwBlaFXgM0Ok3LUpAFpND2JIUsutjtLuELV2RLEA2rp6P35WMGrMXAgMBAAECgYBzhExCn4BmWbd/pq1dxcH7UgbcpV16f5nVem7UDnv7hC0KJyfo6azxaEyL41Q7zLHR15/3uIG6l3IMaNain8E1xk7gzI/Wbaa9ifQ5KXqYMrteRh+vkVt7xc/ePfv72xeq8Qdy+49iX1Xl5Ba7eoKm5Ka1i6108Dyb5IMfKmg5mQJBANuRqN+ym+0WqYBjN3qGoaJdsFP6LTS4Ax/LHRe4qQe+peE73yDPZ/+vWMKgrIAv/B8qTyoCoRzFVw6WS/cMg8MCQQDSxySVKhhWI9/CbkdsqvqYCgdOL2sC7/iwGTe3bxTyk21ogAm3IE1UlEtPx/lAohN17F6DaVEQD0P9PgqNcsIdAkEAhR/YauDI50PBO2Vsgq5UG7SALzpU5EzZIBKvLe25FkgCHQCG9UarQHvY7hAq5oGxdFfbrZXwhxgjA2Ye4sfErwJAcVWhJw+ubEr32wz/HMBG5I+n4/N9P+QWvWGh4uE4y0JYdvM5xhz5V7wxTqHBNW6wthy1qUVs0AzVSwscE3icRQJBALy9QCFc7spNHgqz6ACZ1nJM1z8c/h4MHWYYYlCWLe5r5T7dO3GG3yeAAG2qzVZjnMQp5Jq9Qq3UWTXveXVD0KY="},"accesoSimetrico":{"type":"string","description":"Llave simétrica para cifrar/descifrar con el acceso Simétrico","example":"jilUCZBQp8uow2zNMHKMYp7Twzx05pk6EjwTssx+3lQ="},"codigoAutentificacionHash":{"type":"string","description":"Codigo de autentificacion Hash.","example":"3876afa78689a954e45012feb95707e178d50d74edbad3ba0c0b6bc9e8fc63cc"}}}}},"respuestaObtieneLlaves":{"type":"object","properties":{"mensaje":{"type":"string","description":"Descripción de la operación","example":"Operación Exitosa."},"folio":{"type":"string","description":"Número de folio de la operación","example":"17920190617173411592"},"resultado":{"type":"object","properties":{"accesoPublico":{"type":"string","description":"Llave pública para cifrar","example":"MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC0yEoiMglEQQGXd2PGe3J/5jEBzgUMcmQgq5XkHrAuQ+VcZrziXfhm4SivIOVDDGnYoMMgoPSkc18A4S2FcjX4cn9C0CpwVIxX6GKcM5m3D4sTZQsFWXZQrsAZWhV4DNDpNy1KQBaTQ9iSFLLrY7S7hC1dkSxANq6ej9+VjBqzFwIDAQAB"},"accesoPrivado":{"type":"string","description":"Llave Privada para descifrar","example":"MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBALTISiIyCURBAZd3Y8Z7cn/mMQHOBQxyZCCrleQesC5D5VxmvOJd+GbhKK8g5UMMadigwyCg9KRzXwDhLYVyNfhyf0LQKnBUjFfoYpwzmbcPixNlCwVZdlCuwBlaFXgM0Ok3LUpAFpND2JIUsutjtLuELV2RLEA2rp6P35WMGrMXAgMBAAECgYBzhExCn4BmWbd/pq1dxcH7UgbcpV16f5nVem7UDnv7hC0KJyfo6azxaEyL41Q7zLHR15/3uIG6l3IMaNain8E1xk7gzI/Wbaa9ifQ5KXqYMrteRh+vkVt7xc/ePfv72xeq8Qdy+49iX1Xl5Ba7eoKm5Ka1i6108Dyb5IMfKmg5mQJBANuRqN+ym+0WqYBjN3qGoaJdsFP6LTS4Ax/LHRe4qQe+peE73yDPZ/+vWMKgrIAv/B8qTyoCoRzFVw6WS/cMg8MCQQDSxySVKhhWI9/CbkdsqvqYCgdOL2sC7/iwGTe3bxTyk21ogAm3IE1UlEtPx/lAohN17F6DaVEQD0P9PgqNcsIdAkEAhR/YauDI50PBO2Vsgq5UG7SALzpU5EzZIBKvLe25FkgCHQCG9UarQHvY7hAq5oGxdFfbrZXwhxgjA2Ye4sfErwJAcVWhJw+ubEr32wz/HMBG5I+n4/N9P+QWvWGh4uE4y0JYdvM5xhz5V7wxTqHBNW6wthy1qUVs0AzVSwscE3icRQJBALy9QCFc7spNHgqz6ACZ1nJM1z8c/h4MHWYYYlCWLe5r5T7dO3GG3yeAAG2qzVZjnMQp5Jq9Qq3UWTXveXVD0KY="},"accesoSimetrico":{"type":"string","description":"Llave  para cifrar/descifrar con el acceso Simétrico.","example":"jilUCZBQp8uow2zNMHKMYp7Twzx05pk6EjwTssx+3lQ="},"codigoAutentificacionHash":{"type":"string","description":"Codigo de autentificacion Hash.","example":"3876afa78689a954e45012feb95707e178d50d74edbad3ba0c0b6bc9e8fc63cc"}}}}},"RespuestaGeneral400":{"type":"object","required":["codigo","mensaje","folio","info","detalles"],"properties":{"codigo":{"type":"string","description":"Código del error","example":"400.Operaciones-Baz-Prevencion-Fraudes-Seguridad.400001"},"mensaje":{"type":"string","description":"Descripción del error","example":"Petición incorrecta"},"folio":{"type":"string","description":"Número de folio de la operación","example":"891bf816-59f2-4345-ba7f-366980f36c31"},"info":{"type":"string","description":"Rutas de ayuda para atender el error","example":"https://baz-developer.bancoazteca.com.mx/info#400.Operaciones-Baz-Prevencion-Fraudes-Seguridad.400001"},"detalles":{"type":"array","items":{"type":"string","example":"Parámetro Autorización es requerido"}}}},"RespuestaGeneral404":{"type":"object","required":["codigo","mensaje","folio","info","detalles"],"properties":{"codigo":{"type":"string","description":"Codigo de respuesta","example":"404.Operaciones-Baz-Prevencion-Fraudes-Seguridad.404001"},"mensaje":{"type":"string","description":"Mensaje de respuesta","example":"Sin datos encontrados"},"folio":{"type":"string","description":"Número de folio de la operación","example":"891bf816-59f2-4345-ba7f-366980f36c31"},"info":{"type":"string","description":"Rutas de ayuda para atender el error","example":"https://baz-developer.bancoazteca.com.mx/info#404.Operaciones-Baz-Prevencion-Fraudes-Seguridad.404001"},"detalles":{"type":"array","items":{"type":"string","example":"Sin datos encontrados"}}}},"RespuestaGeneral500":{"type":"object","required":["codigo","mensaje","folio","info","detalles"],"properties":{"codigo":{"type":"string","description":"Código del error","example":"500.Operaciones-Baz-Prevencion-Fraudes-Seguridad.500001"},"mensaje":{"type":"string","description":"Descripción del error","example":"Error interno del servidor"},"folio":{"type":"string","description":"Número de folio de la operación","example":"891bf816-59f2-4345-ba7f-366980f36c31"},"info":{"type":"string","description":"Rutas de ayuda para atender el error","example":"https://baz-developer.bancoazteca.com.mx/info#500.Operaciones-Baz-Prevencion-Fraudes-Seguridad.500001"},"detalles":{"type":"array","items":{"type":"string","example":"Error interno del servidor"}}}},"Schema":{"type":"object","properties":{"id":{"type":"integer","format":"int64"}}}},"securitySchemes":{"Bearer":{"type":"apiKey","description":"Para acceder a la API se debe pasar un token válido en todas las consultas. La siguiente sintaxis se debe utilizar en el encabezado 'Authorization' :\n  Bearer: 2zzLJmBAtTNIU8nF8e8XbmDvaNGs\n","name":"Authorization","in":"header"}}}}