Class SecurityConfig
java.lang.Object
dev.fernando.user_authentication_api.config.SecurityConfig
Security configuration class for the User Authentication API.
This class defines the password encoder bean used for hashing passwords.
- Since:
- 1.0.0
- Author:
- Fernando Cruz Cavina
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.security.crypto.bcrypt.BCryptPasswordEncoder
Bean definition for BCryptPasswordEncoder.
-
Constructor Details
-
SecurityConfig
public SecurityConfig()
-
-
Method Details
-
bCryptPasswordEncoder
@Bean public org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder bCryptPasswordEncoder()Bean definition for BCryptPasswordEncoder. This encoder is used to hash passwords securely.- Returns:
- a new instance of BCryptPasswordEncoder
-