Class SuccessAuthenticationScenario

java.lang.Object
io.micronaut.security.testutils.authprovider.SuccessAuthenticationScenario

@Introspected public class SuccessAuthenticationScenario extends Object
Successful authentication scenario.
  • Constructor Details

    • SuccessAuthenticationScenario

      public SuccessAuthenticationScenario(@NonNull @NonNull String username)
      Parameters:
      username - Username
    • SuccessAuthenticationScenario

      public SuccessAuthenticationScenario(@NonNull @NonNull String username, @Nullable @Nullable String password)
      Parameters:
      username - Username
      password - Password
    • SuccessAuthenticationScenario

      public SuccessAuthenticationScenario(@NonNull @NonNull String username, @NonNull @NonNull List<String> roles)
      Parameters:
      username - Username
      roles - Roles
    • SuccessAuthenticationScenario

      public SuccessAuthenticationScenario(@NonNull @NonNull String username, @NonNull @NonNull List<String> roles, @NonNull @NonNull Map<String,Object> attributes)
      Parameters:
      username - Username
      roles - roles
      attributes - attributes
  • Method Details

    • getUsername

      @NonNull public @NonNull String getUsername()
      Returns:
      Username
    • getPassword

      @Nullable public @Nullable String getPassword()
      Returns:
      password
    • getRoles

      @NonNull public @NonNull List<String> getRoles()
      Returns:
      Roles
    • getAttributes

      @NonNull public @NonNull Map<String,Object> getAttributes()
      Returns:
      Attributes