Class SecurityContextImpl

java.lang.Object
org.wildfly.security.soteria.original.SecurityContextImpl
All Implemented Interfaces:
jakarta.security.enterprise.SecurityContext, Serializable

public class SecurityContextImpl extends Object implements jakarta.security.enterprise.SecurityContext, Serializable
See Also:
  • Field Details

    • ALL_HTTP_METHODS

      public static final Set<String> ALL_HTTP_METHODS
    • ALL_HTTP_METHOD_NAMES

      public static final String[] ALL_HTTP_METHOD_NAMES
  • Constructor Details

    • SecurityContextImpl

      public SecurityContextImpl()
  • Method Details

    • init

      @PostConstruct public void init()
    • getCallerPrincipal

      public Principal getCallerPrincipal()
      Specified by:
      getCallerPrincipal in interface jakarta.security.enterprise.SecurityContext
    • getPrincipalsByType

      public <T extends Principal> Set<T> getPrincipalsByType(Class<T> pType)
      Specified by:
      getPrincipalsByType in interface jakarta.security.enterprise.SecurityContext
    • isCallerInRole

      public boolean isCallerInRole(String role)
      Specified by:
      isCallerInRole in interface jakarta.security.enterprise.SecurityContext
    • getAllDeclaredCallerRoles

      public Set<String> getAllDeclaredCallerRoles()
    • hasAccessToWebResource

      public boolean hasAccessToWebResource(String resource, String... methods)
      Specified by:
      hasAccessToWebResource in interface jakarta.security.enterprise.SecurityContext
    • authenticate

      public jakarta.security.enterprise.AuthenticationStatus authenticate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, jakarta.security.enterprise.authentication.mechanism.http.AuthenticationParameters parameters)
      Specified by:
      authenticate in interface jakarta.security.enterprise.SecurityContext