All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.digitalcollections.commons.springsecurity.jwt.AuthenticatedUser Maven / Gradle / Ivy

There is a newer version: 4.1.3
Show newest version
package de.digitalcollections.commons.springsecurity.jwt;

import java.util.Collection;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.GrantedAuthority;

public class AuthenticatedUser implements Authentication {
  private String name;
  private boolean authenticated = true;

  public AuthenticatedUser(String username) {
    name = username;
  }

  @Override
  public Collection getAuthorities() {
    return null;
  }

  @Override
  public Object getCredentials() {
    return null;
  }

  @Override
  public Object getDetails() {
    return null;
  }

  @Override
  public Object getPrincipal() {
    return null;
  }

  @Override
  public boolean isAuthenticated() {
    return this.authenticated;
  }

  @Override
  public void setAuthenticated(boolean isAuthenticated) throws IllegalArgumentException {
    this.authenticated = isAuthenticated;
  }

  @Override
  public String getName() {
    return this.name;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy