|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Signature
Interface to acces to the digital signature of a document. It provides the necessary methods to get the digital signature and information associated to the certificate used to sign the document.
Signature| Method Summary | |
|---|---|
java.security.cert.X509Certificate |
getCert()
Returns the X509 certificate used to sign. |
java.lang.String |
getCertCaName()
Gets the name of the certification authority of the certificate used to sign. |
java.security.cert.X509Certificate[] |
getCertificateChain()
Returns the certificate chain. |
java.lang.String |
getCertSubjectAlternativeNames()
Gets the concatenation of the subject's alternate name of the certificate used to sign as follows: name0 = value, name1 = value, ... |
java.lang.String |
getCertSubjectCommonName()
Gets the subject's Common Name of the certificate used to sign. |
java.lang.String |
getContentType()
Returns the content type of the certificate. |
java.util.Date |
getDate()
Gets the date of the signature timestamp. |
ParsedCertificate |
getParsedCertificate()
Devuelve el Seycon Principal a partir del certificado con el que se ha firmado. |
byte[] |
getPkcs7()
Returns the signature in PKCS#7 format. |
boolean |
verify()
Determinate the certificate validity of the signature. |
boolean |
verify(java.io.InputStream contentStream)
Verifies the digital signature of a document. |
boolean |
verifyAPosterioriTimestamp(java.io.InputStream contentStream)
Verifies the digital signature of a document. |
| Method Detail |
|---|
java.lang.String getCertCaName()
java.lang.String getCertSubjectCommonName()
java.lang.String getCertSubjectAlternativeNames()
java.util.Date getDate()
throws SignatureTimestampException
null if the signature doesn't include timestamp.
SignatureTimestampException
boolean verify()
throws SignatureVerifyException
true if the certificate is valid; false otherwise.
SignatureVerifyExceptionSigner.verify(java.io.InputStream, es.caib.signatura.api.Signature)byte[] getPkcs7()
java.lang.String getContentType()
java.security.cert.X509Certificate getCert()
java.security.cert.X509Certificate[] getCertificateChain()
throws java.lang.Exception
java.lang.ExceptionParsedCertificate getParsedCertificate()
boolean verify(java.io.InputStream contentStream)
throws SignatureProviderException,
java.io.IOException,
SignatureVerifyException
contentStream - byte stream of the document.
true if the verification process is correct; false otherwise.
SignatureProviderException - If the API provider cannot be accessed.
java.io.IOException - If the document or the timestamp server is not available.
SignatureVerifyException - If failed the verification process.
boolean verifyAPosterioriTimestamp(java.io.InputStream contentStream)
throws SignatureProviderException,
java.io.IOException,
SignatureVerifyException
contentStream - byte stream of the document.
true if the verification process is correct; false otherwise.
SignatureProviderException - If the API provider cannot be accessed.
java.io.IOException - If the document or the timestamp server is not available.
SignatureVerifyException - If failed the verification process.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||