Package net.messagevortex.transport
Class SecurityContext
java.lang.Object
net.messagevortex.transport.SecurityContext
Created by Martin on 11.03.2018.
-
Constructor Summary
ConstructorsConstructorDescriptionSecurityContext(SSLContext context) SecurityContext(SSLContext context, SecurityRequirement req) SecurityContext(SecurityRequirement requirement) -
Method Summary
Modifier and TypeMethodDescriptionGets the currently set SSL context.Gets all the supported ciphers.booleanisCipherSupported(String name) final SSLContextsetContext(SSLContext context) Sets the SSL context to be used.final SecurityRequirementsetRequirement(SecurityRequirement requirement) Sets the necessities of the security context.
-
Constructor Details
-
SecurityContext
public SecurityContext() -
SecurityContext
-
SecurityContext
-
SecurityContext
-
-
Method Details
-
getContext
Gets the currently set SSL context.
- Returns:
- the currently set context
-
setContext
Sets the SSL context to be used.
- Parameters:
context- the SSL context to be set- Returns:
- the previously set context
-
getRequirement
-
setRequirement
Sets the necessities of the security context.
- Parameters:
requirement- the requrement to be achieved- Returns:
- the previously set requirement
-
isCipherSupported
-
getSupportedCiphers
Gets all the supported ciphers.
- Returns:
- the requested set of strings
-