|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.geant.edugain.validation.util.CRLSelector
public final class CRLSelector
Utility class that selects the CRL to use with a given certificate. If net.geant.edugain.validation.crl.url property is defined, then the URL it points to will be used as source for the CRL. Else, the first distribution point found at the given certificate which contains a valid CRL will be used.
| Field Summary | |
|---|---|
protected Configurator |
cfg
|
protected java.util.LinkedHashMap<java.lang.String,java.security.cert.X509CRL> |
crls
This class implements a cache system for all CRLs found. |
protected java.util.LinkedHashMap<java.lang.String,java.util.Calendar> |
crls_tmstamps
|
protected org.apache.log4j.Logger |
log
|
protected static CRLSelector |
ref
|
| Constructor Summary | |
|---|---|
protected |
CRLSelector()
Create a new CRLSelector, checking if user has forced the use of a CRL or those included in the certificates should be used. |
| Method Summary | |
|---|---|
java.lang.Object |
clone()
This class is not clonable... |
static CRLSelector |
getInstance()
Instantiate a new CRLSelector. |
java.security.cert.X509CRL |
select(java.security.cert.X509Certificate cert)
Select a CRL Distribution Point for a given certificate. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.LinkedHashMap<java.lang.String,java.security.cert.X509CRL> crls
protected java.util.LinkedHashMap<java.lang.String,java.util.Calendar> crls_tmstamps
protected static CRLSelector ref
protected Configurator cfg
protected org.apache.log4j.Logger log
| Constructor Detail |
|---|
protected CRLSelector()
throws ValidationException
ValidationException| Method Detail |
|---|
public static CRLSelector getInstance()
throws ValidationException
ValidationException
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
clone in class java.lang.Objectjava.lang.CloneNotSupportedException
public java.security.cert.X509CRL select(java.security.cert.X509Certificate cert)
throws ValidationException
cert - The certificate to verify against a CRL.
ValidationException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||