parent
a15eb7eecf
commit
dbe2ef8758
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2010-2016 the original author or authors.
|
* Copyright 2010-2021 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -287,7 +287,7 @@ public abstract class AbstractJaasAuthenticationProvider
|
||||||
* subclasses for different functionality
|
* subclasses for different functionality
|
||||||
*
|
*
|
||||||
* @param token The authentication token being processed
|
* @param token The authentication token being processed
|
||||||
* @param ase The excetion that caused the authentication failure
|
* @param ase The exception that caused the authentication failure
|
||||||
*/
|
*/
|
||||||
protected void publishFailureEvent(UsernamePasswordAuthenticationToken token,
|
protected void publishFailureEvent(UsernamePasswordAuthenticationToken token,
|
||||||
AuthenticationException ase) {
|
AuthenticationException ase) {
|
||||||
|
|
|
@ -247,7 +247,7 @@ public class JaasAuthenticationProvider extends AbstractJaasAuthenticationProvid
|
||||||
* subclasses for different functionality
|
* subclasses for different functionality
|
||||||
*
|
*
|
||||||
* @param token The authentication token being processed
|
* @param token The authentication token being processed
|
||||||
* @param ase The excetion that caused the authentication failure
|
* @param ase The exception that caused the authentication failure
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
protected void publishFailureEvent(UsernamePasswordAuthenticationToken token,
|
protected void publishFailureEvent(UsernamePasswordAuthenticationToken token,
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright 2002-2017 the original author or authors.
|
* Copyright 2002-2021 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
|
@ -135,7 +135,7 @@ public class DelegatingPasswordEncoderTests {
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void matchesWhenNoClosingPrefixStringThenIllegalArgumentExcetion() {
|
public void matchesWhenNoClosingPrefixStringThenIllegalArgumentException() {
|
||||||
assertThatThrownBy(() -> this.passwordEncoder.matches(this.rawPassword, "{bcrypt" + this.rawPassword))
|
assertThatThrownBy(() -> this.passwordEncoder.matches(this.rawPassword, "{bcrypt" + this.rawPassword))
|
||||||
.isInstanceOf(IllegalArgumentException.class)
|
.isInstanceOf(IllegalArgumentException.class)
|
||||||
.hasMessage("There is no PasswordEncoder mapped for the id \"null\"");
|
.hasMessage("There is no PasswordEncoder mapped for the id \"null\"");
|
||||||
|
|
Loading…
Reference in New Issue