Non puoi selezionare più di 25 argomenti
Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
63 righe
1.8 KiB
63 righe
1.8 KiB
/* */ package it.tref.signextractor.data; |
|
/* */ |
|
/* */ import java.util.Date; |
|
/* */ import java.util.List; |
|
/* */ import org.bouncycastle.cert.X509CertificateHolder; |
|
/* */ |
|
/* */ public class SignExtractorResult |
|
/* */ { |
|
/* */ private SignFile file; |
|
/* */ private List<SignCert> certs; |
|
/* */ |
|
/* */ public SignFile getFile() |
|
/* */ { |
|
/* 11 */ return this.file; |
|
/* */ } |
|
/* */ |
|
/* */ public void setFile(SignFile file) { |
|
/* 15 */ this.file = file; |
|
/* */ } |
|
/* */ |
|
/* */ public List<SignCert> getCerts() { |
|
/* 19 */ return this.certs; |
|
/* */ } |
|
/* */ |
|
/* */ public void setCerts(List<SignCert> certs) { |
|
/* 23 */ this.certs = certs; |
|
/* */ } |
|
/* */ |
|
/* */ public boolean isValid() { |
|
/* 27 */ boolean valid = true; |
|
/* */ |
|
/* 29 */ for (SignCert cert : this.certs) { |
|
/* 30 */ valid = (valid) && (cert.isValid()); |
|
/* */ } |
|
/* */ |
|
/* 33 */ return valid; |
|
/* */ } |
|
/* */ |
|
/* */ public boolean isValidOnDate(Date date) { |
|
/* 37 */ boolean valid = true; |
|
/* */ |
|
/* 39 */ for (SignCert cert : this.certs) { |
|
/* 40 */ valid = (valid) && (cert.getCertificateHolder().isValidOn(date)); |
|
/* */ } |
|
/* */ |
|
/* 43 */ return valid; |
|
/* */ } |
|
/* */ |
|
/* */ public boolean isVerified() { |
|
/* 47 */ boolean verified = true; |
|
/* */ |
|
/* 49 */ for (SignCert cert : this.certs) { |
|
/* 50 */ verified = (verified) && (cert.isVerified()); |
|
/* */ } |
|
/* */ |
|
/* 53 */ return verified; |
|
/* */ } |
|
/* */ } |
|
|
|
/* Location: C:\liferay-sviluppo\portos2\git\portos-camel-document-processor\lib\tref-sign-exctractor-0.1.0.jar |
|
* Qualified Name: it.tref.signextractor.data.SignExtractorResult |
|
* JD-Core Version: 0.6.0 |
|
*/ |