Class SecurityContextImpl

  • All Implemented Interfaces:
    jakarta.security.enterprise.SecurityContext, Serializable

    public class SecurityContextImpl
    extends Object
    implements jakarta.security.enterprise.SecurityContext, Serializable
    See Also:
    Serialized Form
    • Constructor Detail

      • SecurityContextImpl

        public SecurityContextImpl()
    • Method Detail

      • init

        @PostConstruct
        public void init()
      • getCallerPrincipal

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

        public <T extends PrincipalSet<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