Class JwtSecurityContext

java.lang.Object
org.tasktide.api.auth.JwtSecurityContext
All Implemented Interfaces:
jakarta.ws.rs.core.SecurityContext

public class JwtSecurityContext extends Object implements jakarta.ws.rs.core.SecurityContext
  • Constructor Details

    • JwtSecurityContext

      public JwtSecurityContext(AuthPrincipal principal, boolean secure, Set<String> roles)
  • Method Details

    • getUserPrincipal

      public Principal getUserPrincipal()
      Specified by:
      getUserPrincipal in interface jakarta.ws.rs.core.SecurityContext
    • isUserInRole

      public boolean isUserInRole(String role)
      Specified by:
      isUserInRole in interface jakarta.ws.rs.core.SecurityContext
    • isSecure

      public boolean isSecure()
      Specified by:
      isSecure in interface jakarta.ws.rs.core.SecurityContext
    • getAuthenticationScheme

      public String getAuthenticationScheme()
      Specified by:
      getAuthenticationScheme in interface jakarta.ws.rs.core.SecurityContext