es.caib.signatura.impl
Interface SignatureProviderInterface

All Superinterfaces:
Signature

public interface SignatureProviderInterface
extends Signature

Interfaz que encapsula la firma digital de un documento, proporcionando los métodos necesarios para obtener tanto la firma como otros de interés: nombre de la entidad certificadora, nombre del certificado usado o la cadena de SubjectAlternativeNames

Version:
1.0
Author:
Jesús Reyes (3dígits)
See Also:
Signature

Method Summary
 java.security.cert.X509Certificate[] getCertificateChain()
          Returns the certificate chain.
 void setContentType(java.lang.String contentType)
           
 void setSignedData(byte[] pkcs7)
           
 
Methods inherited from interface es.caib.signatura.api.Signature
getCert, getCertCaName, getCertSubjectAlternativeNames, getCertSubjectCommonName, getContentType, getDate, getParsedCertificate, getPkcs7, verify, verify, verifyAPosterioriTimestamp
 

Method Detail

setSignedData

void setSignedData(byte[] pkcs7)
                   throws java.lang.Exception
Throws:
java.lang.Exception

setContentType

void setContentType(java.lang.String contentType)
                    throws java.lang.Exception
Throws:
java.lang.Exception

getCertificateChain

java.security.cert.X509Certificate[] getCertificateChain()
                                                         throws java.lang.Exception
Description copied from interface: Signature
Returns the certificate chain.

Specified by:
getCertificateChain in interface Signature
Returns:
the certificate chain.
Throws:
java.lang.Exception


Copyright © 2011 Direcció General de Tecnologia i Comunicacions. Govern de les Illes Balears. All Rights Reserved.