01: package com.sun.portal.netlet.crypt.jsse;
02:
03: import java.security.cert.X509Certificate;
04:
05: import javax.net.ssl.X509TrustManager;
06:
07: /*
08: * This is a dummy TrustManager. Just accepts the server certificiate since
09: * gateway certificate is already trusted.
10: */
11:
12: public class NetletTrustManager implements X509TrustManager {
13: public X509Certificate[] getAcceptedIssuers() {
14: return null;
15: }
16:
17: public void checkClientTrusted(X509Certificate[] chain,
18: String authType) {
19: }
20:
21: public void checkServerTrusted(X509Certificate[] chain,
22: String authType) {
23: }
24:
25: }
|