Class PiranhaToExousiaConverter

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

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

    Constructors
    Constructor Description
    PiranhaToExousiaConverter()  
  • Method Summary

    Modifier and Type Method Description
    java.util.List<org.omnifaces.exousia.constraints.SecurityConstraint> getConstraintsFromSecurityAnnotations​(java.util.List<java.util.Map.Entry<java.util.List<java.lang.String>,​ServletSecurity>> elements)
    Get the security constraints from annotations.
    java.util.List<org.omnifaces.exousia.constraints.SecurityConstraint> getConstraintsFromSecurityElements​(java.util.List<java.util.Map.Entry<java.util.List<java.lang.String>,​ServletSecurityElement>> elements)
    Get the security constraints from security elements.
    java.util.List<org.omnifaces.exousia.constraints.SecurityConstraint> getConstraintsFromWebXml​(WebXml webXml)
    Get the security constraints from web.xml.
    java.util.Map<java.lang.String,​java.util.List<org.omnifaces.exousia.mapping.SecurityRoleRef>> getSecurityRoleRefsFromWebXml​(java.util.Set<java.lang.String> servletNames, WebXml webXml)
    Get the security role refs from web.xml

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • PiranhaToExousiaConverter

      public PiranhaToExousiaConverter()
  • Method Details

    • getConstraintsFromSecurityElements

      public java.util.List<org.omnifaces.exousia.constraints.SecurityConstraint> getConstraintsFromSecurityElements​(java.util.List<java.util.Map.Entry<java.util.List<java.lang.String>,​ServletSecurityElement>> elements)
      Get the security constraints from security elements.
      Parameters:
      elements - the security elements.
      Returns:
      the security constraints.
    • getConstraintsFromSecurityAnnotations

      public java.util.List<org.omnifaces.exousia.constraints.SecurityConstraint> getConstraintsFromSecurityAnnotations​(java.util.List<java.util.Map.Entry<java.util.List<java.lang.String>,​ServletSecurity>> elements)
      Get the security constraints from annotations.
      Parameters:
      elements - the elements.
      Returns:
      the security constraints.
    • getConstraintsFromWebXml

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

      public java.util.Map<java.lang.String,​java.util.List<org.omnifaces.exousia.mapping.SecurityRoleRef>> getSecurityRoleRefsFromWebXml​(java.util.Set<java.lang.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.