| | |
| | | */ |
| | | package org.opends.server.crypto; |
| | | |
| | | import static org.opends.messages.CoreMessages.*; |
| | | import static org.opends.server.api.plugin.PluginType.*; |
| | | import static org.opends.server.config.ConfigConstants.*; |
| | | import static org.opends.server.protocols.internal.InternalClientConnection.*; |
| | | import static org.opends.server.protocols.internal.Requests.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | | import java.util.EnumSet; |
| | | import java.util.HashMap; |
| | | import java.util.LinkedHashMap; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import org.forgerock.i18n.LocalizableMessage; |
| | | import org.forgerock.i18n.slf4j.LocalizedLogger; |
| | |
| | | import org.opends.server.types.operation.PostResponseDeleteOperation; |
| | | import org.opends.server.types.operation.PostResponseModifyOperation; |
| | | |
| | | import static org.opends.messages.CoreMessages.*; |
| | | import static org.opends.server.api.plugin.PluginType.*; |
| | | import static org.opends.server.config.ConfigConstants.*; |
| | | import static org.opends.server.protocols.internal.InternalClientConnection.*; |
| | | import static org.opends.server.protocols.internal.Requests.*; |
| | | import static org.opends.server.util.ServerConstants.*; |
| | | import static org.opends.server.util.StaticUtils.*; |
| | | |
| | | /** |
| | | * This class defines an object that synchronizes certificates from the admin |
| | | * data branch into the trust store backend, and synchronizes secret-key entries |
| | |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void performBackendInitializationProcessing(Backend backend) |
| | | public void performBackendInitializationProcessing(Backend<?> backend) |
| | | { |
| | | DN[] baseDNs = backend.getBaseDNs(); |
| | | if (baseDNs != null) |
| | |
| | | |
| | | /** {@inheritDoc} */ |
| | | @Override |
| | | public void performBackendFinalizationProcessing(Backend backend) |
| | | public void performBackendFinalizationProcessing(Backend<?> backend) |
| | | { |
| | | // No implementation required. |
| | | } |
| | |
| | | * Delete an entry from the local trust store. |
| | | * @param dstDN The DN of the entry to be deleted in the local trust store. |
| | | */ |
| | | private void deleteEntry(DN dstDN) |
| | | private static void deleteEntry(DN dstDN) |
| | | { |
| | | InternalClientConnection conn = |
| | | InternalClientConnection.getRootConnection(); |
| | |
| | | */ |
| | | private void addEntry(Entry srcEntry, DN dstDN) |
| | | { |
| | | LinkedHashMap<ObjectClass,String> ocMap = |
| | | new LinkedHashMap<ObjectClass,String>(2); |
| | | Map<ObjectClass, String> ocMap = new LinkedHashMap<>(2); |
| | | ocMap.put(DirectoryServer.getTopObjectClass(), OC_TOP); |
| | | ocMap.put(ocInstanceKey, OC_CRYPTO_INSTANCE_KEY); |
| | | |
| | | HashMap<AttributeType, List<Attribute>> userAttrs = |
| | | new HashMap<AttributeType, List<Attribute>>(); |
| | | Map<AttributeType, List<Attribute>> userAttrs = new HashMap<>(); |
| | | |
| | | List<Attribute> attrList; |
| | | attrList = srcEntry.getAttribute(attrAlias); |