Class SecurityContext

java.lang.Object
net.messagevortex.transport.SecurityContext

public class SecurityContext extends Object
Created by Martin on 11.03.2018.
  • Constructor Details

  • Method Details

    • getContext

      public SSLContext getContext()

      Gets the currently set SSL context.

      Returns:
      the currently set context
    • setContext

      public final SSLContext setContext(SSLContext context)

      Sets the SSL context to be used.

      Parameters:
      context - the SSL context to be set
      Returns:
      the previously set context
    • getRequirement

      public SecurityRequirement getRequirement()
    • setRequirement

      public final SecurityRequirement setRequirement(SecurityRequirement requirement)

      Sets the necessities of the security context.

      Parameters:
      requirement - the requrement to be achieved
      Returns:
      the previously set requirement
    • isCipherSupported

      public boolean isCipherSupported(String name)
    • getSupportedCiphers

      public Set<String> getSupportedCiphers()

      Gets all the supported ciphers.

      Returns:
      the requested set of strings