public class Verifier
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
canceled |
private CertificationAuthorities |
CAroot |
private org.bouncycastle.cms.CMSSignedData |
cms |
private java.io.File |
crlDir |
private java.util.Iterator<org.bouncycastle.cms.SignerInformation> |
currentSigner |
private boolean |
done |
private java.util.Vector<java.lang.String> |
errors |
private java.lang.String |
filepath |
private boolean |
isDownloadCRLForced |
private java.util.logging.Logger |
log |
private java.util.Hashtable<javax.security.auth.x500.X500Principal,VerifyResult> |
risultati |
private RootsVerifier |
rootsVerifier |
private java.util.ArrayList<javax.security.auth.x500.X500Principal> |
signersList |
Constructor and Description |
---|
Verifier(java.lang.String f,
boolean isDownloadCRLForced,
RootsVerifier rv) |
Modifier and Type | Method and Description |
---|---|
static org.bouncycastle.cms.CMSSignedData |
buildCmsFromFile(java.lang.String filepath) |
static java.lang.String |
getCommonName(java.security.cert.X509Certificate userCert)
Returns the Common name of given certificate
Restituisce il CN del subjct certificato in oggetto |
java.io.File |
getCrlDir() |
java.util.Vector<java.lang.String> |
getErrors() |
(package private) byte[] |
getFile() |
java.util.Hashtable<javax.security.auth.x500.X500Principal,VerifyResult> |
getRisultati() |
void |
initCARoots() |
boolean |
isCanceled() |
boolean |
isDone() |
void |
readFile() |
void |
setCrlDir(java.io.File crlDir) |
void |
verify() |
private java.util.logging.Logger log
private java.lang.String filepath
private CertificationAuthorities CAroot
private boolean done
private boolean canceled
private java.util.ArrayList<javax.security.auth.x500.X500Principal> signersList
private java.util.Iterator<org.bouncycastle.cms.SignerInformation> currentSigner
private org.bouncycastle.cms.CMSSignedData cms
private java.util.Hashtable<javax.security.auth.x500.X500Principal,VerifyResult> risultati
private java.util.Vector<java.lang.String> errors
private boolean isDownloadCRLForced
private RootsVerifier rootsVerifier
private java.io.File crlDir
public Verifier(java.lang.String f, boolean isDownloadCRLForced, RootsVerifier rv) throws java.lang.Exception
java.lang.Exception
public java.io.File getCrlDir()
public void setCrlDir(java.io.File crlDir)
public boolean isCanceled()
public void initCARoots() throws java.lang.Exception
java.lang.Exception
public java.util.Vector<java.lang.String> getErrors()
public static org.bouncycastle.cms.CMSSignedData buildCmsFromFile(java.lang.String filepath) throws org.bouncycastle.cms.CMSException, java.io.IOException
org.bouncycastle.cms.CMSException
java.io.IOException
public void readFile()
public void verify()
public boolean isDone()
public static java.lang.String getCommonName(java.security.cert.X509Certificate userCert)
userCert
- certificato da cui estrarre il Common Namebyte[] getFile()
public java.util.Hashtable<javax.security.auth.x500.X500Principal,VerifyResult> getRisultati()