public class PKIVerifier extends Object
Modifier and Type | Field and Description |
---|---|
static String |
AUTHORITY_KEY_IDENTIFIER |
static String |
BASIC_CONSTRAINTS_IDENTIFIER |
static String |
KEY_USAGE_IDENTIFIER |
static String |
PROXYCERTINFO |
static String |
PROXYCERTINFO_OLD |
static String |
SUBJECT_KEY_IDENTIFIER |
static String |
TARGET |
Constructor and Description |
---|
PKIVerifier()
Initializes the verifier.
|
PKIVerifier(VOMSTrustStore vomsStore)
Initializes the verifier.
|
PKIVerifier(VOMSTrustStore vomsStore,
PKIStore caStore)
Initializes the verifier.
|
Modifier and Type | Method and Description |
---|---|
void |
cleanup()
Cleans up resources allocated by the verifier.
|
void |
setCAStore(PKIStore store)
Sets a new CAStore.
|
void |
setVOMSStore(VOMSTrustStore store)
Sets a new VOMSStore.
|
boolean |
verify(AttributeCertificate ac)
Verifies an Attribute Certificate according to RFC 3281.
|
boolean |
verify(X509Certificate[] certs)
Verifies an certificate chain according to RFC 3280.
|
public static final String SUBJECT_KEY_IDENTIFIER
public static final String AUTHORITY_KEY_IDENTIFIER
public static final String PROXYCERTINFO
public static final String PROXYCERTINFO_OLD
public static final String BASIC_CONSTRAINTS_IDENTIFIER
public static final String KEY_USAGE_IDENTIFIER
public static final String TARGET
public PKIVerifier(VOMSTrustStore vomsStore, PKIStore caStore)
vomsStore
- the VOMSTrustStore object which represents the vomsdir store.caStore
- the PKIStore object which represents the CA store.public PKIVerifier(VOMSTrustStore vomsStore) throws IOException, CertificateException, CRLException
vomsStore
- the VOMSTrustStore object which represents the vomsdir store.IOException
- if there have been IO errors.CertificateException
- if there have been problems parsing a certificateCRLException
- if there have been problems parsing a CRL.public PKIVerifier() throws IOException, CertificateException, CRLException
IOException
- if there have been IO errors.CertificateException
- if there have been problems parsing a certificateCRLException
- if there have been problems parsing a CRL.public void cleanup()
public void setCAStore(PKIStore store)
store
- the new CA store.public void setVOMSStore(VOMSTrustStore store)
store
- the new VOMS store.public boolean verify(AttributeCertificate ac)
ac
- the Attribute Certificate to verify.public boolean verify(X509Certificate[] certs)
certs
- the chain to verify.Copyright © 2014. All rights reserved.