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