Class SecurityHandler

java.lang.Object
v1.sulphurapi.handlers.auth.SecurityHandler

public class SecurityHandler extends Object
  • Field Details

    • APIKeyData

      public static org.apache.commons.lang3.tuple.MutableTriple<io.swagger.v3.oas.models.security.SecurityScheme.In,String,String> APIKeyData
      Holds the In, the Value of the query/header that holds API-Key, the value of the API key
  • Constructor Details

    • SecurityHandler

      public SecurityHandler(APILoader apiLoader)
      Constructor for the SecurityHandler class.
      Parameters:
      apiLoader - the APILoader instance that will be used to access the GUIManager and other components.
  • Method Details

    • setSelectedSecurityScheme

      public void setSelectedSecurityScheme(String selectedSecurityScheme)
      Updates the Selected Security Scheme with a String input
    • setSelectedSecurityScheme

      public void setSelectedSecurityScheme(int index)
      Updates the Selected Security Scheme with a int input
    • getSelectedSecurityScheme

      public String getSelectedSecurityScheme()
      Retrieves the current Selected Security Scheme
    • getCurrentSecurityScheme

      public io.swagger.v3.oas.models.security.SecurityScheme getCurrentSecurityScheme()
      Retrieves the current Security Scheme
    • clearSecurityRequirements

      public void clearSecurityRequirements()
      Clears the JList of all its values