From 39db72786ec179e67e3c1c0c71a2e93672999ea5 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 03 Dec 2009 18:04:49 +0000
Subject: [PATCH] Split SDK from server code and add build/packaging infrastructure.
---
sdk/src/org/opends/sdk/tools/TrustAllTrustManager.java | 22 +++++++++++++++-------
1 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/sdk/src/org/opends/sdk/util/ssl/TrustAllTrustManager.java b/sdk/src/org/opends/sdk/tools/TrustAllTrustManager.java
similarity index 80%
rename from sdk/src/org/opends/sdk/util/ssl/TrustAllTrustManager.java
rename to sdk/src/org/opends/sdk/tools/TrustAllTrustManager.java
index 17c0db5..3d0cbd0 100644
--- a/sdk/src/org/opends/sdk/util/ssl/TrustAllTrustManager.java
+++ b/sdk/src/org/opends/sdk/tools/TrustAllTrustManager.java
@@ -25,34 +25,43 @@
* Copyright 2008 Sun Microsystems, Inc.
*/
-package org.opends.sdk.util.ssl;
+package org.opends.sdk.tools;
+
+
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.X509TrustManager;
+
+
/**
* An X509TrustManager which trusts everything.
*/
-public class TrustAllTrustManager implements X509TrustManager {
+final class TrustAllTrustManager implements X509TrustManager
+{
/**
* {@inheritDoc}
*/
- public void checkClientTrusted(X509Certificate[] chain, String authType)
- throws CertificateException
+ public void checkClientTrusted(X509Certificate[] chain,
+ String authType) throws CertificateException
{
}
+
+
/**
* {@inheritDoc}
*/
- public void checkServerTrusted(X509Certificate[] chain, String authType)
- throws CertificateException
+ public void checkServerTrusted(X509Certificate[] chain,
+ String authType) throws CertificateException
{
}
+
+
/**
* {@inheritDoc}
*/
@@ -61,4 +70,3 @@
return new X509Certificate[0];
}
}
-
--
Gitblit v1.10.0