Class PiranhaToExousiaConverter

java.lang.Object
cloud.piranha.extension.exousia.PiranhaToExousiaConverter

public class PiranhaToExousiaConverter extends Object
This class converts from Piranha security types to Exousia security types.
Author:
arjan
  • Constructor Details

    • PiranhaToExousiaConverter

      public PiranhaToExousiaConverter()
  • Method Details

    • getConstraintsFromSecurityElements

      public List<org.glassfish.exousia.constraints.SecurityConstraint> getConstraintsFromSecurityElements(List<Map.Entry<List<String>,jakarta.servlet.ServletSecurityElement>> elements)
      Get the security constraints from security elements.
      Parameters:
      elements - the security elements.
      Returns:
      the security constraints.
    • getConstraintsFromSecurityAnnotations

      public List<org.glassfish.exousia.constraints.SecurityConstraint> getConstraintsFromSecurityAnnotations(List<Map.Entry<List<String>,jakarta.servlet.annotation.ServletSecurity>> elements)
      Get the security constraints from annotations.
      Parameters:
      elements - the elements.
      Returns:
      the security constraints.
    • getConstraintsFromWebXml

      public List<org.glassfish.exousia.constraints.SecurityConstraint> getConstraintsFromWebXml(WebXml webXml)
      Get the security constraints from web.xml.
      Parameters:
      webXml - the web.xml
      Returns:
      the security constraints.
    • getSecurityRoleRefsFromWebXml

      public Map<String,List<org.glassfish.exousia.mapping.SecurityRoleRef>> getSecurityRoleRefsFromWebXml(Set<String> servletNames, WebXml webXml)
      Get the security role refs from web.xml
      Parameters:
      servletNames - the servlet names.
      webXml - the web.xml.
      Returns:
      the security role refs.