public class PKIVerifier
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
AUTHORITY_KEY_IDENTIFIER |
static java.lang.String |
BASIC_CONSTRAINTS_IDENTIFIER |
static java.lang.String |
KEY_USAGE_IDENTIFIER |
static java.lang.String |
PROXYCERTINFO |
static java.lang.String |
PROXYCERTINFO_OLD |
static java.lang.String |
SUBJECT_KEY_IDENTIFIER |
static java.lang.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(java.security.cert.X509Certificate[] certs)
Verifies an certificate chain according to RFC 3280.
|
public static final java.lang.String SUBJECT_KEY_IDENTIFIER
public static final java.lang.String AUTHORITY_KEY_IDENTIFIER
public static final java.lang.String PROXYCERTINFO
public static final java.lang.String PROXYCERTINFO_OLD
public static final java.lang.String BASIC_CONSTRAINTS_IDENTIFIER
public static final java.lang.String KEY_USAGE_IDENTIFIER
public static final java.lang.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 java.io.IOException, java.security.cert.CertificateException, java.security.cert.CRLException
vomsStore
- the VOMSTrustStore object which represents the vomsdir store.java.io.IOException
- if there have been IO errors.java.security.cert.CertificateException
- if there have been problems parsing a certificatejava.security.cert.CRLException
- if there have been problems parsing a CRL.public PKIVerifier() throws java.io.IOException, java.security.cert.CertificateException, java.security.cert.CRLException
java.io.IOException
- if there have been IO errors.java.security.cert.CertificateException
- if there have been problems parsing a certificatejava.security.cert.CRLException
- 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(java.security.cert.X509Certificate[] certs)
certs
- the chain to verify.