| | |
| | | * CDDL HEADER END |
| | | * |
| | | * |
| | | * Portions Copyright 2006 Sun Microsystems, Inc. |
| | | * Portions Copyright 2006-2007 Sun Microsystems, Inc. |
| | | */ |
| | | package org.opends.server.extensions; |
| | | |
| | |
| | | import org.opends.server.api.ConnectionSecurityProvider; |
| | | import org.opends.server.types.DirectoryException; |
| | | |
| | | import static org.opends.server.loggers.Debug.*; |
| | | |
| | | |
| | | |
| | |
| | | public class InternalConnectionSecurityProvider |
| | | extends NullConnectionSecurityProvider |
| | | { |
| | | /** |
| | | * The fully-qualified name of this class for debugging purposes. |
| | | */ |
| | | private static final String CLASS_NAME = |
| | | "org.opends.server.extensions.InternalConnectionSecurityProvider"; |
| | | |
| | | |
| | | |
| | |
| | | public InternalConnectionSecurityProvider() |
| | | { |
| | | super(); |
| | | |
| | | assert debugConstructor(CLASS_NAME); |
| | | } |
| | | |
| | | |
| | |
| | | ClientConnection clientConnection, SocketChannel socketChannel) |
| | | { |
| | | super(clientConnection, socketChannel); |
| | | |
| | | assert debugConstructor(CLASS_NAME, String.valueOf(clientConnection)); |
| | | } |
| | | |
| | | |
| | |
| | | */ |
| | | public String getSecurityMechanismName() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "getSecurityMechanismName"); |
| | | |
| | | return "INTERNAL"; |
| | | } |
| | |
| | | */ |
| | | public boolean isSecure() |
| | | { |
| | | assert debugEnter(CLASS_NAME, "isSecure"); |
| | | |
| | | // Internal connections are inherently secure. |
| | | return true; |
| | |
| | | SocketChannel socketChannel) |
| | | throws DirectoryException |
| | | { |
| | | assert debugEnter(CLASS_NAME, "newInstance", |
| | | String.valueOf(clientConnection), |
| | | String.valueOf(socketChannel)); |
| | | |
| | | return new InternalConnectionSecurityProvider(clientConnection, |
| | | socketChannel); |