@@ -85,58 +85,6 @@ public class Pbkdf2PasswordEncoder implements PasswordEncoder {
85
85
86
86
private boolean encodeHashAsBase64 ;
87
87
88
- /**
89
- * Constructs a PBKDF2 password encoder with no additional secret value. There will be
90
- * a salt length of 8 bytes, 185,000 iterations, SHA-1 algorithm and a hash length of
91
- * 256 bits. The default is based upon aiming for .5 seconds to validate the password
92
- * when this class was added. Users should tune password verification to their own
93
- * systems.
94
- * @deprecated Use {@link #defaultsForSpringSecurity_v5_5()} instead
95
- */
96
- @ Deprecated
97
- public Pbkdf2PasswordEncoder () {
98
- this ("" );
99
- }
100
-
101
- /**
102
- * Constructs a PBKDF2 password encoder with a secret value which is also included in
103
- * the password hash. There will be a salt length of 8 bytes, 185,000 iterations,
104
- * SHA-1 algorithm and a hash length of 256 bits.
105
- * @param secret the secret key used in the encoding process (should not be shared)
106
- * @deprecated Use {@link #Pbkdf2PasswordEncoder(CharSequence, int, int, int)} instead
107
- */
108
- @ Deprecated
109
- public Pbkdf2PasswordEncoder (CharSequence secret ) {
110
- this (secret , 8 );
111
- }
112
-
113
- /**
114
- * Constructs a PBKDF2 password encoder with a secret value as well as salt length.
115
- * There will be 185,000 iterations, SHA-1 algorithm and a hash length of 256 bits.
116
- * @param secret the secret
117
- * @param saltLength the salt length (in bytes)
118
- * @since 5.5
119
- * @deprecated Use {@link #Pbkdf2PasswordEncoder(CharSequence, int, int, int)} instead
120
- */
121
- @ Deprecated
122
- public Pbkdf2PasswordEncoder (CharSequence secret , int saltLength ) {
123
- this (secret , saltLength , 185000 , 256 );
124
- }
125
-
126
- /**
127
- * Constructs a PBKDF2 password encoder with a secret value as well as iterations and
128
- * hash width. The salt length will be 8 bytes.
129
- * @param secret the secret
130
- * @param iterations the number of iterations. Users should aim for taking about .5
131
- * seconds on their own system.
132
- * @param hashWidth the size of the hash (in bits)
133
- * @deprecated Use {@link #Pbkdf2PasswordEncoder(CharSequence, int, int, int)} instead
134
- */
135
- @ Deprecated
136
- public Pbkdf2PasswordEncoder (CharSequence secret , int iterations , int hashWidth ) {
137
- this (secret , 8 , iterations , hashWidth );
138
- }
139
-
140
88
/**
141
89
* Constructs a PBKDF2 password encoder with a secret value as well as salt length,
142
90
* iterations and hash width.
0 commit comments