/** * Permanently delete the given protocol. Matching protocols cannot * be re-added by a later rule (such rules will be ignored). * * @param protocolName the name of the protocol to remove * @return a new selector which includes the new rule */ public ProtocolSelector deleteFully(final String protocolName) { return deleteFully(Protocol.forName(protocolName)); }
/** * Remove the given protocol. Matching protocols may be re-added by a later rule. * * @param protocolName the name of the protocol to remove * @return a new selector which includes the new rule */ public ProtocolSelector remove(final String protocolName) { return remove(Protocol.forName(protocolName)); }
/** * Add the given protocol. * * @param protocolName the name of the protocol to add * @return a new selector which includes the new rule */ public ProtocolSelector add(final String protocolName) { return add(Protocol.forName(protocolName)); }
/** * Evaluate this selector against the given list of JSSE supported protocols. * * @param supportedProtocols the supported protocols * @return the enabled protocols (not {@code null}) */ public final String[] evaluate(String[] supportedProtocols) { final EnumMap<Protocol, String> supported = new EnumMap<Protocol, String>(Protocol.class); for (String protocolName : supportedProtocols) { final Protocol protocol = Protocol.forName(protocolName); if (protocol != null) { supported.put(protocol, protocolName); } } final LinkedHashSet<Protocol> enabledSet = new LinkedHashSet<>(supported.size()); doEvaluate(enabledSet, supported); final ArrayList<String> list = new ArrayList<>(enabledSet.size()); for (Protocol protocol : enabledSet) { list.add(supported.get(protocol)); } return list.toArray(new String[enabledSet.size()]); }
ok = false; final Protocol prot = Protocol.forName(strings[5]); if (prot == null) { log.warnInvalidProtocolForMechanismDatabaseEntry(strings[5], name);
/** * Add the given protocol. * * @param protocolName the name of the protocol to add * @return a new selector which includes the new rule */ public ProtocolSelector add(final String protocolName) { return add(Protocol.forName(protocolName)); }
/** * Permanently delete the given protocol. Matching protocols cannot * be re-added by a later rule (such rules will be ignored). * * @param protocolName the name of the protocol to remove * @return a new selector which includes the new rule */ public ProtocolSelector deleteFully(final String protocolName) { return deleteFully(Protocol.forName(protocolName)); }
/** * Permanently delete the given protocol. Matching protocols cannot * be re-added by a later rule (such rules will be ignored). * * @param protocolName the name of the protocol to remove * @return a new selector which includes the new rule */ public ProtocolSelector deleteFully(final String protocolName) { return deleteFully(Protocol.forName(protocolName)); }
/** * Remove the given protocol. Matching protocols may be re-added by a later rule. * * @param protocolName the name of the protocol to remove * @return a new selector which includes the new rule */ public ProtocolSelector remove(final String protocolName) { return remove(Protocol.forName(protocolName)); }
/** * Remove the given protocol. Matching protocols may be re-added by a later rule. * * @param protocolName the name of the protocol to remove * @return a new selector which includes the new rule */ public ProtocolSelector remove(final String protocolName) { return remove(Protocol.forName(protocolName)); }
/** * Remove the given protocol. Matching protocols may be re-added by a later rule. * * @param protocolName the name of the protocol to remove * @return a new selector which includes the new rule */ public ProtocolSelector remove(final String protocolName) { return remove(Protocol.forName(protocolName)); }
/** * Add the given protocol. * * @param protocolName the name of the protocol to add * @return a new selector which includes the new rule */ public ProtocolSelector add(final String protocolName) { return add(Protocol.forName(protocolName)); }
/** * Permanently delete the given protocol. Matching protocols cannot * be re-added by a later rule (such rules will be ignored). * * @param protocolName the name of the protocol to remove * @return a new selector which includes the new rule */ public ProtocolSelector deleteFully(final String protocolName) { return deleteFully(Protocol.forName(protocolName)); }
/** * Add the given protocol. * * @param protocolName the name of the protocol to add * @return a new selector which includes the new rule */ public ProtocolSelector add(final String protocolName) { return add(Protocol.forName(protocolName)); }
/** * Evaluate this selector against the given list of JSSE supported protocols. * * @param supportedProtocols the supported protocols * @return the enabled protocols (not {@code null}) */ public final String[] evaluate(String[] supportedProtocols) { final EnumMap<Protocol, String> supported = new EnumMap<Protocol, String>(Protocol.class); for (String protocolName : supportedProtocols) { final Protocol protocol = Protocol.forName(protocolName); if (protocol != null) { supported.put(protocol, protocolName); } } final LinkedHashSet<Protocol> enabledSet = new LinkedHashSet<>(supported.size()); doEvaluate(enabledSet, supported); final ArrayList<String> list = new ArrayList<>(enabledSet.size()); for (Protocol protocol : enabledSet) { list.add(supported.get(protocol)); } return list.toArray(new String[enabledSet.size()]); }
/** * Evaluate this selector against the given list of JSSE supported protocols. * * @param supportedProtocols the supported protocols * @return the enabled protocols (not {@code null}) */ public final String[] evaluate(String[] supportedProtocols) { final EnumMap<Protocol, String> supported = new EnumMap<Protocol, String>(Protocol.class); for (String protocolName : supportedProtocols) { final Protocol protocol = Protocol.forName(protocolName); if (protocol != null) { supported.put(protocol, protocolName); } } final LinkedHashSet<Protocol> enabledSet = new LinkedHashSet<>(supported.size()); doEvaluate(enabledSet, supported); final ArrayList<String> list = new ArrayList<>(enabledSet.size()); for (Protocol protocol : enabledSet) { list.add(supported.get(protocol)); } return list.toArray(new String[enabledSet.size()]); }
/** * Evaluate this selector against the given list of JSSE supported protocols. * * @param supportedProtocols the supported protocols * @return the enabled protocols (not {@code null}) */ public final String[] evaluate(String[] supportedProtocols) { final EnumMap<Protocol, String> supported = new EnumMap<Protocol, String>(Protocol.class); for (String protocolName : supportedProtocols) { final Protocol protocol = Protocol.forName(protocolName); if (protocol != null) { supported.put(protocol, protocolName); } } final LinkedHashSet<Protocol> enabledSet = new LinkedHashSet<>(supported.size()); doEvaluate(enabledSet, supported); final ArrayList<String> list = new ArrayList<>(enabledSet.size()); for (Protocol protocol : enabledSet) { list.add(supported.get(protocol)); } return list.toArray(new String[enabledSet.size()]); }
ok = false; final Protocol prot = Protocol.forName(strings[5]); if (prot == null) { log.warnInvalidProtocolForMechanismDatabaseEntry(strings[5], name);
List<Protocol> list = new ArrayList<>(); for (String protocol : protocols) { Protocol forName = Protocol.forName(protocol); list.add(forName);
List<Protocol> list = new ArrayList<>(); for (String protocol : protocols) { Protocol forName = Protocol.forName(protocol); list.add(forName);