Builder for a
Credentials implementation.- Since:
- 1.0
-
Method Summary
Modifier and TypeMethodDescriptionbuild()withPassword(char[] password) withUsername(String username)
-
Method Details
-
withUsername
- Parameters:
username- the username of thisCredentials- Returns:
thisbuilder
-
withPassword
- Parameters:
password- the password of thisCredentials- Returns:
thisbuilder
-
withRoles
- Parameters:
roles- the enabled roles of thisCredentials- Returns:
thisbuilder
-
build
Credentials build()- Returns:
- an instance of a default implementation of
Credentials
-