|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
com.tangosol.net.security.PeerX509TrustManager
public class PeerX509TrustManager
X509TrustManager implementation that requires the peer's certificate to be present in a configured key store.
| Field Summary | |
|---|---|
static String |
ALGORITHMThe alogorithm used by this TrustManager. |
protected KeyStore |
m_keyStoreThe key store used by this TrustManager. |
| Constructor Summary | |
|---|---|
PeerX509TrustManager(KeyStore keyStore)Create a new PeerTrustManager that requires the peer's certificate to be present in the given key store. |
|
| Method Summary | |
|---|---|
void |
checkClientTrusted(X509Certificate[] aCert, String sAuthType)Determine if the leaf certificate in the given certificate chain is contained in the trusted peer key store. |
void |
checkPeerTrusted(X509Certificate[] aCert, String sAuthType)Determine if the leaf certificate in the given certificate chain is contained in the trusted peer key store. |
void |
checkServerTrusted(X509Certificate[] aCert, String sAuthType)Determine if the leaf certificate in the given certificate chain is contained in the trusted peer key store. |
X509Certificate[] |
getAcceptedIssuers()Return an array of certificate authority certificates which are trusted for authenticating peers. |
protected String |
getCommonName(Principal principal)Return the common name of the given principal |
| Field Detail |
|---|
protected final KeyStore m_keyStore
public static final String ALGORITHM
| Constructor Detail |
|---|
public PeerX509TrustManager(KeyStore keyStore)
keyStore - the key store that contains the certificates of trusted peers| Method Detail |
|---|
public void checkPeerTrusted(X509Certificate[] aCert,
String sAuthType)
throws CertificateException
aCert - the certificate chainsAuthType - the authentication typeCertificateException - if the certificate chain is not trusted
public void checkClientTrusted(X509Certificate[] aCert,
String sAuthType)
throws CertificateException
checkClientTrusted in interface X509TrustManageraCert - the certificate chainsAuthType - the authentication typeCertificateException - if the certificate chain is not trusted
public void checkServerTrusted(X509Certificate[] aCert,
String sAuthType)
throws CertificateException
checkServerTrusted in interface X509TrustManageraCert - the certificate chainsAuthType - the authentication typeCertificateException - if the certificate chain is not trustedpublic X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers in interface X509TrustManagerprotected String getCommonName(Principal principal)
principal - the principal
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||