content: package com.admin4j.framework.security.jwt;
  
  import lombok.Data;
  
  import java.util.Set;
  
  /**
   * @author andanyang
   * @since 2023/6/14 12:38
   */
  @Data
  public class TestJwtUserDetails implements JwtUserDetails {
  
      private static final long serialVersionUID = -1795277201149737773L;
      private String jwtSalt = "12wa";
      private Long userId = 1L;
      private String authType = "ASD";
  
  
      @Override
      public boolean isAdmin() {
          return false;
      }
  
      /**
       * 权限列表
       */
      @Override
      public Set<String> getPermissions() {
          return null;
      }
  
  
      /**
       * Returns the password used to authenticate the user.
       *
       * @return the password
       */
      @Override
      public String getPassword() {
          return null;
      }
  
      /**
       * Returns the username used to authenticate the user. Cannot return
       * <code>null</code>.
       *
       * @return the username (never <code>null</code>)
       */
      @Override
      public String getUsername() {
          return null;
      }
  
      /**
       * Indicates whether the user's account has expired. An expired account cannot be
       * authenticated.
       *
       * @return <code>true</code> if the user's account is valid (ie non-expired),
       * <code>false</code> if no longer valid (ie expired)
       */
      @Override
      public boolean isAccountNonExpired() {
          return false;
      }
  
      /**
       * Indicates whether the user is locked or unlocked. A locked user cannot be
       * authenticated.
       *
       * @return <code>true</code> if the user is not locked, <code>false</code> otherwise
       */
      @Override
      public boolean isAccountNonLocked() {
          return false;
      }
  
      /**
       * Indicates whether the user's credentials (password) has expired. Expired
       * credentials prevent authentication.
       *
       * @return <code>true</code> if the user's credentials are valid (ie non-expired),
       * <code>false</code> if no longer valid (ie expired)
       */
      @Override
      public boolean isCredentialsNonExpired() {
          return false;
      }
  
      /**
       * Indicates whether the user is enabled or disabled. A disabled user cannot be
       * authenticated.
       *
       * @return <code>true</code> if the user is enabled, <code>false</code> otherwise
       */
      @Override
      public boolean isEnabled() {
          return false;
      }
  }
  