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

uk.co.mruoc.nac.user.inmemory.StubUserTokenConfig Maven / Gradle / Ivy

package uk.co.mruoc.nac.user.inmemory;

import java.util.Objects;
import lombok.Builder;
import lombok.Data;

@Builder
@Data
public class StubUserTokenConfig {

  private final String username;
  private final String password;
  private final String subject;
  private final String authCode;

  public boolean hasUsername(String username) {
    return Objects.equals(this.username, username);
  }

  public boolean hasAuthCode(String authCode) {
    return Objects.equals(this.authCode, authCode);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy