| | |
| | | import org.opends.server.types.AuthenticationInfo; |
| | | import org.opends.server.types.LDAPException; |
| | | |
| | | import static org.opends.server.loggers.debug.DebugLogger.debugCaught; |
| | | import static org.opends.server.loggers.debug.DebugLogger.debugEnabled; |
| | | import static org.opends.server.loggers.debug.DebugLogger.debugVerbose; |
| | | import static org.opends.server.loggers.debug.DebugLogger.*; |
| | | import org.opends.server.loggers.debug.DebugTracer; |
| | | import org.opends.server.types.DebugLogLevel; |
| | | |
| | | /** |
| | |
| | | */ |
| | | public class RmiAuthenticator implements JMXAuthenticator |
| | | { |
| | | /** |
| | | * The tracer object for the debug logger. |
| | | */ |
| | | private static final DebugTracer TRACER = getTracer(); |
| | | |
| | | |
| | | /** |
| | | * The client authencation mode. <code>true</code> indicates that the |
| | |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | debugVerbose("User name is Null"); |
| | | TRACER.debugVerbose("User name is Null"); |
| | | } |
| | | SecurityException se = new SecurityException(); |
| | | throw se; |
| | |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | debugVerbose("User password is Null "); |
| | | TRACER.debugVerbose("User password is Null "); |
| | | } |
| | | |
| | | SecurityException se = new SecurityException(); |
| | |
| | | |
| | | if (debugEnabled()) |
| | | { |
| | | debugVerbose("UserName = %s", authcID); |
| | | TRACER.debugVerbose("UserName = %s", authcID); |
| | | } |
| | | |
| | | // |
| | |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | debugCaught(DebugLogLevel.ERROR, e); |
| | | TRACER.debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | SecurityException se = new SecurityException(); |
| | | se.initCause(e); |
| | |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | debugVerbose("User is authenticated"); |
| | | TRACER.debugVerbose("User is authenticated"); |
| | | } |
| | | |
| | | authInfo = bindOp.getAuthenticationInfo(); |