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