Class SuccessAuthenticationScenario
java.lang.Object
io.micronaut.security.testutils.authprovider.SuccessAuthenticationScenario
Successful authentication scenario.
-
Constructor Summary
ConstructorDescriptionSuccessAuthenticationScenario
(@NonNull String username) SuccessAuthenticationScenario
(@NonNull String username, @NonNull List<String> roles) SuccessAuthenticationScenario
(@NonNull String username, @NonNull List<String> roles, @NonNull Map<String, Object> attributes) SuccessAuthenticationScenario
(@NonNull String username, @Nullable String password) -
Method Summary
-
Constructor Details
-
SuccessAuthenticationScenario
- Parameters:
username
- Username
-
SuccessAuthenticationScenario
public SuccessAuthenticationScenario(@NonNull @NonNull String username, @Nullable @Nullable String password) - Parameters:
username
- Usernamepassword
- Password
-
SuccessAuthenticationScenario
public SuccessAuthenticationScenario(@NonNull @NonNull String username, @NonNull @NonNull List<String> roles) - Parameters:
username
- Usernameroles
- Roles
-
SuccessAuthenticationScenario
public SuccessAuthenticationScenario(@NonNull @NonNull String username, @NonNull @NonNull List<String> roles, @NonNull @NonNull Map<String, Object> attributes) - Parameters:
username
- Usernameroles
- rolesattributes
- attributes
-
-
Method Details
-
getUsername
- Returns:
- Username
-
getPassword
- Returns:
- password
-
getRoles
- Returns:
- Roles
-
getAttributes
- Returns:
- Attributes
-