You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by co...@apache.org on 2019/12/11 09:33:45 UTC

[directory-server] branch master updated: Delete unused ServerX509TrustManager (#27)

This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/directory-server.git


The following commit(s) were added to refs/heads/master by this push:
     new 6bf0877  Delete unused ServerX509TrustManager (#27)
6bf0877 is described below

commit 6bf08774d93efe35664a059af9e666fed859758e
Author: Colm O hEigeartaigh <co...@users.noreply.github.com>
AuthorDate: Wed Dec 11 09:33:38 2019 +0000

    Delete unused ServerX509TrustManager (#27)
---
 .../ldap/handlers/ssl/ServerX509TrustManager.java  | 58 ----------------------
 1 file changed, 58 deletions(-)

diff --git a/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ssl/ServerX509TrustManager.java b/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ssl/ServerX509TrustManager.java
deleted file mode 100644
index 72ae501..0000000
--- a/protocol-ldap/src/main/java/org/apache/directory/server/ldap/handlers/ssl/ServerX509TrustManager.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- *  Licensed to the Apache Software Foundation (ASF) under one
- *  or more contributor license agreements.  See the NOTICE file
- *  distributed with this work for additional information
- *  regarding copyright ownership.  The ASF licenses this file
- *  to you under the Apache License, Version 2.0 (the
- *  "License"); you may not use this file except in compliance
- *  with the License.  You may obtain a copy of the License at
- *  
- *    http://www.apache.org/licenses/LICENSE-2.0
- *  
- *  Unless required by applicable law or agreed to in writing,
- *  software distributed under the License is distributed on an
- *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- *  KIND, either express or implied.  See the License for the
- *  specific language governing permissions and limitations
- *  under the License. 
- *  
- */
-package org.apache.directory.server.ldap.handlers.ssl;
-
-
-import java.security.cert.CertificateException;
-import java.security.cert.X509Certificate;
-
-import javax.net.ssl.X509TrustManager;
-
-
-/**
- * An {@link X509TrustManager} for LDAP server.
- *
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- */
-public class ServerX509TrustManager implements X509TrustManager
-{
-    public ServerX509TrustManager()
-    {
-    }
-
-
-    public void checkClientTrusted( X509Certificate[] arg0, String arg1 ) throws CertificateException
-    {
-        // We don't check clients at all right now.
-        // XXX: Do we need a client-side certificates?
-    }
-
-
-    public void checkServerTrusted( X509Certificate[] arg0, String arg1 ) throws CertificateException
-    {
-        // It is server-side trust manager, so we don't need to check the server itself.
-    }
-
-
-    public X509Certificate[] getAcceptedIssuers()
-    {
-        return null;
-    }
-}