Class SignatureIdentityInformation
java.lang.Object
br.ufsc.labsec.signature.conformanceVerifier.AbstractSignatureIdentityInformation
br.ufsc.labsec.signature.conformanceVerifier.xades.SignatureIdentityInformation
- All Implemented Interfaces:
AttributeCertificateCollection
,CertificateCollection
,CRLRevocationInformation
,OCSPRevocationInformation
public class SignatureIdentityInformation extends AbstractSignatureIdentityInformation
Esta classe gerencia as listas de certificados e CRLs de uma assinatura XAdES.
Implementa
CRLRevocationInformation
e CertificateCollection
.-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SignatureIdentityInformation.XadesSource
Nested classes/interfaces inherited from class br.ufsc.labsec.signature.conformanceVerifier.AbstractSignatureIdentityInformation
AbstractSignatureIdentityInformation.AttributeCertificateSelector, AbstractSignatureIdentityInformation.CertificateSelector, AbstractSignatureIdentityInformation.CRLSelector, AbstractSignatureIdentityInformation.OCSPSelector, AbstractSignatureIdentityInformation.SourcedInformation<T>
Nested classes/interfaces inherited from interface br.ufsc.labsec.signature.validationData.OCSPRevocationInformation
OCSPRevocationInformation.OCSPResult
-
Field Summary
Fields inherited from class br.ufsc.labsec.signature.conformanceVerifier.AbstractSignatureIdentityInformation
attributeCertificates, basicOCSPResponses, certificates, crls
-
Constructor Summary
Constructors Constructor Description SignatureIdentityInformation()
-
Method Summary
Modifier and Type Method Description void
addAttributeCertificate(SignatureObject signature, org.bouncycastle.cert.X509AttributeCertificateHolder certificate)
void
addAttributeCertificates(SignatureObject signature, Collection<org.bouncycastle.cert.X509AttributeCertificateHolder> certificate)
void
addCertificate(SignatureObject signature, Certificate certificate)
void
addCertificates(SignatureObject signature, Collection<Certificate> certificates)
void
addCRL(SignatureObject signature, CRL crl)
void
addCRLs(SignatureObject signature, Collection<CRL> crls)
void
addOCSP(SignatureObject signature, org.bouncycastle.asn1.ocsp.BasicOCSPResponse ocsp)
void
addOCSPs(SignatureObject signature, Collection<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> ocsps)
Optional<org.bouncycastle.cert.X509AttributeCertificateHolder>
getAttributeCertificate(SignatureObject signature, org.bouncycastle.util.Selector<org.bouncycastle.cert.X509AttributeCertificateHolder> selector)
List<org.bouncycastle.cert.X509AttributeCertificateHolder>
getAttributeCertificates(SignatureObject signature, org.bouncycastle.util.Selector<org.bouncycastle.cert.X509AttributeCertificateHolder> selector)
Optional<Certificate>
getCertificate(SignatureObject signature, org.bouncycastle.util.Selector<Certificate> selector)
List<Certificate>
getCertificates(SignatureObject signature, org.bouncycastle.util.Selector<Certificate> selector)
Optional<CRL>
getCRL(SignatureObject signature, org.bouncycastle.util.Selector<CRL> selector)
List<CRL>
getCRLs(SignatureObject signature, org.bouncycastle.util.Selector<CRL> selector)
Optional<org.bouncycastle.asn1.ocsp.BasicOCSPResponse>
getOCSP(SignatureObject signature, org.bouncycastle.util.Selector<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> selector)
List<org.bouncycastle.asn1.ocsp.BasicOCSPResponse>
getOCSPs(SignatureObject signature, org.bouncycastle.util.Selector<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> selector)
Methods inherited from class br.ufsc.labsec.signature.conformanceVerifier.AbstractSignatureIdentityInformation
addAttributeCertificate, addAttributeCertificates, addCertificate, addCertificates, addCRL, addCRLs, addOCSP, addOCSPs, clearAll, clearAttributeCertificates, clearCertificates, clearCRLs, clearOCSPs, getAttributeCertificate, getAttributeCertificate, getAttributeCertificates, getAttributeCertificates, getCertificate, getCertificate, getCertificate, getCertificates, getCertificates, getCertificates, getCRL, getCRL, getCRLs, getCRLs, getOCSP, getOCSP, getOCSPs, getOCSPs
-
Constructor Details
-
SignatureIdentityInformation
public SignatureIdentityInformation()
-
-
Method Details
-
addCertificate
-
addCertificates
-
getCertificate
public Optional<Certificate> getCertificate(SignatureObject signature, org.bouncycastle.util.Selector<Certificate> selector) -
getCertificates
public List<Certificate> getCertificates(SignatureObject signature, org.bouncycastle.util.Selector<Certificate> selector) -
addCRL
-
addCRLs
-
getCRL
public Optional<CRL> getCRL(SignatureObject signature, org.bouncycastle.util.Selector<CRL> selector) -
getCRLs
-
addOCSP
-
addOCSPs
public void addOCSPs(SignatureObject signature, Collection<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> ocsps) -
getOCSP
public Optional<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> getOCSP(SignatureObject signature, org.bouncycastle.util.Selector<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> selector) -
getOCSPs
public List<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> getOCSPs(SignatureObject signature, org.bouncycastle.util.Selector<org.bouncycastle.asn1.ocsp.BasicOCSPResponse> selector) -
getAttributeCertificate
public Optional<org.bouncycastle.cert.X509AttributeCertificateHolder> getAttributeCertificate(SignatureObject signature, org.bouncycastle.util.Selector<org.bouncycastle.cert.X509AttributeCertificateHolder> selector) -
getAttributeCertificates
public List<org.bouncycastle.cert.X509AttributeCertificateHolder> getAttributeCertificates(SignatureObject signature, org.bouncycastle.util.Selector<org.bouncycastle.cert.X509AttributeCertificateHolder> selector) -
addAttributeCertificate
public void addAttributeCertificate(SignatureObject signature, org.bouncycastle.cert.X509AttributeCertificateHolder certificate) -
addAttributeCertificates
public void addAttributeCertificates(SignatureObject signature, Collection<org.bouncycastle.cert.X509AttributeCertificateHolder> certificate)
-