View Javadoc
1   package de.dlr.shepard.auth.security;
2   
3   import jakarta.enterprise.context.RequestScoped;
4   import lombok.Setter;
5   
6   @Setter
7   @RequestScoped
8   public class AuthenticationContext {
9   
10    private JwtPrincipal principal;
11  
12    public String getCurrentUserName() {
13      return principal.getUsername();
14    }
15  }