SEC-519: Fix. Changed notNull() assertion for "key" parameter to hasText() to prevent the use of empty keys.

This commit is contained in:
Luke Taylor 2007-08-27 17:17:25 +00:00
parent 1c72b7989e
commit 57f3d268a1
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ public class CasAuthenticationProvider implements AuthenticationProvider, Initia
Assert.notNull(this.ticketValidator, "A ticketValidator must be set");
Assert.notNull(this.casProxyDecider, "A casProxyDecider must be set");
Assert.notNull(this.statelessTicketCache, "A statelessTicketCache must be set");
Assert.notNull(this.key, "A Key is required so CasAuthenticationProvider can identify tokens it previously authenticated");
Assert.hasText(this.key, "A Key is required so CasAuthenticationProvider can identify tokens it previously authenticated");
Assert.notNull(this.messages, "A message source must be set");
}