Package org.wildfly.security.ssl
Class ProtocolSelector
java.lang.Object
org.wildfly.security.ssl.ProtocolSelector
An immutable filter for SSL/TLS protocols.
- Author:
- David M. Lloyd
-
Method Summary
Modifier and TypeMethodDescriptionAdd the given protocol.Add the given protocols.Add the given protocol.Add the given protocols.static ProtocolSelectorGet the default SSL protocol selector.deleteFully(String protocolName) Permanently delete the given protocol.deleteFully(EnumSet<Protocol> protocols) Permanently delete all of the given protocols.deleteFully(Protocol protocol) Permanently delete the given protocol.deleteFully(Protocol... protocols) Permanently delete all of the given protocols.static ProtocolSelectorempty()Get the basic empty SSL protocol selector.final String[]Evaluate this selector against the given list of JSSE supported protocols.Remove the given protocol.Remove the given protocols.Remove the given protocol.Remove the given protocols.final StringtoString()
-
Method Details
-
toString
-
empty
Get the basic empty SSL protocol selector.- Returns:
- the empty selector
-
defaultProtocols
Get the default SSL protocol selector.- Returns:
- the default selector
-
deleteFully
Permanently delete the given protocol. Matching protocols cannot be re-added by a later rule (such rules will be ignored).- Parameters:
protocolName- the name of the protocol to remove- Returns:
- a new selector which includes the new rule
-
deleteFully
Permanently delete the given protocol. Matching protocols cannot be re-added by a later rule (such rules will be ignored).- Parameters:
protocol- the protocol to remove- Returns:
- a new selector which includes the new rule
-
deleteFully
Permanently delete all of the given protocols. Matching protocols cannot be re-added by a later rule (such rules will be ignored).- Parameters:
protocols- the protocols to remove- Returns:
- a new selector which includes the new rule
-
deleteFully
Permanently delete all of the given protocols. Matching protocols cannot be re-added by a later rule (such rules will be ignored).- Parameters:
protocols- the protocols to remove- Returns:
- a new selector which includes the new rule
-
remove
Remove the given protocol. Matching protocols may be re-added by a later rule.- Parameters:
protocolName- the name of the protocol to remove- Returns:
- a new selector which includes the new rule
-
remove
Remove the given protocol. Matching protocols may be re-added by a later rule.- Parameters:
protocol- the protocol to remove- Returns:
- a new selector which includes the new rule
-
remove
Remove the given protocols. Matching protocols may be re-added by a later rule.- Parameters:
protocols- the protocols to remove- Returns:
- a new selector which includes the new rule
-
remove
Remove the given protocols. Matching protocols may be re-added by a later rule.- Parameters:
protocols- the protocols to remove- Returns:
- a new selector which includes the new rule
-
add
Add the given protocol.- Parameters:
protocolName- the name of the protocol to add- Returns:
- a new selector which includes the new rule
-
add
Add the given protocol.- Parameters:
protocol- the protocol to add- Returns:
- a new selector which includes the new rule
-
add
Add the given protocols.- Parameters:
protocols- the protocols to add- Returns:
- a new selector which includes the new rule
-
add
Add the given protocols.- Parameters:
protocols- the protocols to add- Returns:
- a new selector which includes the new rule
-
evaluate
Evaluate this selector against the given list of JSSE supported protocols.- Parameters:
supportedProtocols- the supported protocols- Returns:
- the enabled protocols (not
null)
-