|
|
@@ -1,18 +1,17 @@
|
|
|
/*
|
|
|
- * Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
|
|
|
+ * Copyright 2002-2017 the original author or authors.
|
|
|
*
|
|
|
- * Redistribution and use in source and binary forms, with or without
|
|
|
- * modification, are permitted provided that the following conditions are met:
|
|
|
+ * Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
+ * you may not use this file except in compliance with the License.
|
|
|
+ * You may obtain a copy of the License at
|
|
|
*
|
|
|
- * Redistributions of source code must retain the above copyright notice,
|
|
|
- * this list of conditions and the following disclaimer.
|
|
|
- * Redistributions in binary form must reproduce the above copyright
|
|
|
- * notice, this list of conditions and the following disclaimer in the
|
|
|
- * documentation and/or other materials provided with the distribution.
|
|
|
- * Neither the name of the dreamlu.net developer nor the names of its
|
|
|
- * contributors may be used to endorse or promote products derived from
|
|
|
- * this software without specific prior written permission.
|
|
|
- * Author: Chill 庄骞 (smallchill@163.com)
|
|
|
+ * https://www.apache.org/licenses/LICENSE-2.0
|
|
|
+ *
|
|
|
+ * Unless required by applicable law or agreed to in writing, software
|
|
|
+ * distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
+ * See the License for the specific language governing permissions and
|
|
|
+ * limitations under the License.
|
|
|
*/
|
|
|
package org.springblade.auth.support;
|
|
|
|
|
|
@@ -28,7 +27,8 @@ import java.util.Map;
|
|
|
/**
|
|
|
* 自定义密码工厂
|
|
|
*
|
|
|
- * @author Chill
|
|
|
+ * @author Rob Winch, Chill
|
|
|
+ * @since 5.0
|
|
|
*/
|
|
|
public class BladePasswordEncoderFactories {
|
|
|
|
|
|
@@ -48,7 +48,6 @@ public class BladePasswordEncoderFactories {
|
|
|
*
|
|
|
* @return the {@link PasswordEncoder} to use
|
|
|
*/
|
|
|
- @SuppressWarnings("deprecation")
|
|
|
public static PasswordEncoder createDelegatingPasswordEncoder() {
|
|
|
String encodingId = "blade";
|
|
|
Map<String, PasswordEncoder> encoders = new HashMap<>(16);
|