Class CertificateUtil
java.lang.Object
es.juntadeandalucia.afirma.client.util.CertificateUtil
Utilidades para el tratamiento del certificado
- Version:
- Revision: $Rev: 3326 $
, Last modified: $Date: 2014-02-24 10:41:46 +0100 (Mon, 24 Feb 2014) $
, Modified by: $Author: alejandro.roman $ - Author:
- Alejandro Román Márquez
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic List<CertificateInfo> getInfoCertificate(String readableCertificateInfo) Recorre el contenido de %amp;afxp:ReadableCertificateInfo%amp; y obtiene los datos del certificado volcándolos sobre un Mapstatic List<CertificateInfo> getNativeInfoCertificate(String readableCertificateInfo) Recorre el contenido de <InfoCertificado> y obtiene los datos del certificado volcándolos sobre un Mapstatic List<VerifyCertificateResponse> getSignerCertificates(String serverResponse) Procesa la respuesta y recorre los IndividualSignatureReports para obtener los datos del certificado y el primer CertificateValue
-
Constructor Details
-
CertificateUtil
public CertificateUtil()
-
-
Method Details
-
getInfoCertificate
public static List<CertificateInfo> getInfoCertificate(String readableCertificateInfo) throws UnsupportedEncodingException, SAXException, IOException Recorre el contenido de %amp;afxp:ReadableCertificateInfo%amp; y obtiene los datos del certificado volcándolos sobre un Map- Parameters:
readableCertificateInfo-- Returns:
- Lista de objetos
CertificateInfo - Throws:
IOExceptionSAXExceptionUnsupportedEncodingException
-
getNativeInfoCertificate
public static List<CertificateInfo> getNativeInfoCertificate(String readableCertificateInfo) throws UnsupportedEncodingException, SAXException, IOException Recorre el contenido de <InfoCertificado> y obtiene los datos del certificado volcándolos sobre un Map- Parameters:
readableCertificateInfo-- Returns:
- Lista de objetos
CertificateInfo - Throws:
IOExceptionSAXExceptionUnsupportedEncodingException
-
getSignerCertificates
public static List<VerifyCertificateResponse> getSignerCertificates(String serverResponse) throws UnsupportedEncodingException, SAXException, IOException, XPathExpressionException, ParserConfigurationException Procesa la respuesta y recorre los IndividualSignatureReports para obtener los datos del certificado y el primer CertificateValue- Parameters:
serverResponse-- Throws:
UnsupportedEncodingExceptionSAXExceptionIOExceptionParserConfigurationExceptionXPathExpressionException
-