Class ResponseUtil
java.lang.Object
es.juntadeandalucia.afirma.client.util.ResponseUtil
Utilidades para el tratamiento del certificado
- Version:
- Revision: $Rev: 3875 $
, Last modified: $Date: 2014-06-09 14:29:17 +0200 (Mon, 09 Jun 2014) $
, Modified by: $Author: esalgado $ - Author:
- Alejandro Román Márquez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<CertificateInfo> getInfoCertificate(String readableCertificateInfo) Recorre el contenido de <afxp:ReadableCertificateInfo> y obtiene los datos del certificado volcándolos sobre un Mapstatic List<IndividualSignatureReport> getSignerReport(String serverResponse) Procesa la respuesta y recorre los IndividualSignatureReports para obtener los datos del certificado y el primer CertificateValue
-
Constructor Details
-
ResponseUtil
public ResponseUtil()
-
-
Method Details
-
getInfoCertificate
public static List<CertificateInfo> getInfoCertificate(String readableCertificateInfo) throws SAXException, IOException Recorre el contenido de <afxp:ReadableCertificateInfo> y obtiene los datos del certificado volcándolos sobre un Map- Parameters:
readableCertificateInfo-- Returns:
- Lista de objetos
CertificateInfo - Throws:
IOExceptionSAXException
-
getSignerReport
public static List<IndividualSignatureReport> getSignerReport(String serverResponse) throws SAXException, IOException, XPathExpressionException, ParserConfigurationException Procesa la respuesta y recorre los IndividualSignatureReports para obtener los datos del certificado y el primer CertificateValue- Parameters:
serverResponse-- Throws:
SAXExceptionIOExceptionParserConfigurationExceptionXPathExpressionException
-