| | |
| | | |
| | | import static org.opends.server.messages.ToolMessages.*; |
| | | import static org.opends.server.messages.MessageHandler.*; |
| | | import static org.opends.server.loggers.debug.DebugLogger.debugCought; |
| | | import static org.opends.server.loggers.debug.DebugLogger.debugCaught; |
| | | import static org.opends.server.loggers.debug.DebugLogger.debugEnabled; |
| | | import org.opends.server.types.DebugLogLevel; |
| | | |
| | |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | int msgID = MSGID_TOOLS_CANNOT_LOAD_KEYSTORE_FILE; |
| | | throw new SSLConnectionException(getMessage(msgID, keyStoreFile), e); |
| | |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, ke); |
| | | debugCaught(DebugLogLevel.ERROR, ke); |
| | | } |
| | | int msgID = MSGID_TOOLS_CANNOT_INIT_KEYMANAGER; |
| | | throw new SSLConnectionException(getMessage(msgID, keyStoreFile), ke); |
| | |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, e); |
| | | debugCaught(DebugLogLevel.ERROR, e); |
| | | } |
| | | int msgID = MSGID_TOOLS_CANNOT_LOAD_TRUSTSTORE_FILE; |
| | | throw new SSLConnectionException(getMessage(msgID, trustStoreFile), e); |
| | |
| | | { |
| | | if (debugEnabled()) |
| | | { |
| | | debugCought(DebugLogLevel.ERROR, ke); |
| | | debugCaught(DebugLogLevel.ERROR, ke); |
| | | } |
| | | int msgID = MSGID_TOOLS_CANNOT_INIT_TRUSTMANAGER; |
| | | throw new SSLConnectionException(getMessage(msgID, trustStoreFile), ke); |