|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.glite.security.trustmanager.CRLFileTrustManager
public class CRLFileTrustManager
The CRLFileTrustManager meks the decisions whether the certificate chain is trusted or not. Before use the instance of this calss has to be initialized by using either of the init methods.
Constructor Summary | |
---|---|
CRLFileTrustManager(java.util.Vector trustAnchors)
Creates new CRLTrustManager |
Method Summary | |
---|---|
void |
checkClientTrusted(java.security.cert.X509Certificate[] x509Certificate,
java.lang.String authType)
This method checks that the certificate path is a valid client certificate path. |
void |
checkServerTrusted(java.security.cert.X509Certificate[] x509Certificate,
java.lang.String authType)
This method checks that the certificate path is a valid server certificate path. |
java.security.cert.X509Certificate[] |
getAcceptedIssuers()
This method returns an array containing all the CA certs. |
void |
setChecker(java.security.cert.PKIXCertPathChecker cheker)
Sets the checker to use for the check against CRLs. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CRLFileTrustManager(java.util.Vector trustAnchors) throws java.security.cert.CertificateException, java.security.NoSuchProviderException
trustAnchors
- The trustanchors used for ceritificate path checking.
java.security.cert.CertificateException
- if certificate handling fails.
java.security.NoSuchProviderException
- if bouncycastle provider was not found.Method Detail |
---|
public void setChecker(java.security.cert.PKIXCertPathChecker cheker)
cheker
- the crl checker to use.public void checkClientTrusted(java.security.cert.X509Certificate[] x509Certificate, java.lang.String authType) throws java.security.cert.CertificateException
checkClientTrusted
in interface javax.net.ssl.X509TrustManager
x509Certificate
- The certificate path to check. It may contain the CA cert or not. If it contains the CA
cert, the CA cert is discarded and the one given in the constructor is used. The array has the actual
certificate in the index 0 and the CA or the CA signed cert as the last cert.authType
- Defines the authentication type, but is not used.
java.security.cert.CertificateException
- Thrown if the certificate path is invalid.public void checkServerTrusted(java.security.cert.X509Certificate[] x509Certificate, java.lang.String authType) throws java.security.cert.CertificateException
checkServerTrusted
in interface javax.net.ssl.X509TrustManager
x509Certificate
- The certificate path to check. It may contain the CA cert or not. If it contains the CA
cert, the CA cert is discarded and the one given in the constructor is used. The array has the actual
certificate in the index 0 and the CA or the CA signed cert as the last cert.authType
- Defines the authentication type, but is not used.
java.security.cert.CertificateException
- Thrown if the certificate path is invalid.public java.security.cert.X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface javax.net.ssl.X509TrustManager
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |