|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glite.security.util.TrustStorage
public class TrustStorage
A class that handles the information obtained from the trust directory.
| Constructor Summary | |
|---|---|
TrustStorage(java.lang.String storagePath)
Deprecated. use the constructor TrustStorage(String, CaseInsensitiveProperties) instead. |
|
TrustStorage(java.lang.String storagePath,
CaseInsensitiveProperties props)
Generates a new TrustStorage instance. |
|
| Method Summary | |
|---|---|
void |
checkUpdate()
Checks the trust store. |
FullTrustAnchor[] |
getAnchors()
Used to get the list of trust anchors in the storage. |
FullTrustAnchor[] |
getAnchors(java.lang.String hash)
Returns the anchors that correspond to the given hash. |
void |
loadAnchors()
Deprecated. use checkUpdating also for initial loading. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TrustStorage(java.lang.String storagePath)
throws java.io.IOException,
java.security.cert.CertificateException,
java.text.ParseException
storagePath - The path to the trust anchors, CRLs and name spaces.
java.io.IOException - If there is a file access problem.
java.security.cert.CertificateException - in case the certificate handling fails.
java.text.ParseException - in case the namespace parsing fails.
public TrustStorage(java.lang.String storagePath,
CaseInsensitiveProperties props)
throws java.io.IOException,
java.security.cert.CertificateException,
java.text.ParseException
storagePath - The path to the trust anchors, CRLs and name spaces.props - the properties to pass along for child classes to use.
java.io.IOException - If there is a file access problem.
java.security.cert.CertificateException - in case the certificate handling fails.
java.text.ParseException - in case the namespace parsing fails.| Method Detail |
|---|
public FullTrustAnchor[] getAnchors(java.lang.String hash)
hash - The hash used to identify the CA.
public void loadAnchors()
throws java.io.IOException,
java.security.cert.CertificateException,
java.text.ParseException
java.io.IOException - Thrown in case there is problems reading the files.
java.security.cert.CertificateException - Thrown in case there is problems parsing the Certificates.
java.text.ParseException - Thrown in case the namespace file parsing fails.
public void checkUpdate()
throws java.io.IOException,
java.security.cert.CertificateException,
java.text.ParseException
java.io.IOException - in case there is a problem reading files from the file system.
java.security.cert.CertificateException - in case there is problems parsing the CA certificates or CRLs.
java.text.ParseException - in case there is problems parsing the name space files.public FullTrustAnchor[] getAnchors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||