Changed from using WSS4J getIdentifer() to getIdentifier().
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2008 the original author or authors.
|
||||
* Copyright 2002-2009 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -88,7 +88,7 @@ public class KeyStoreCallbackHandler extends AbstractWsPasswordCallbackHandler i
|
||||
|
||||
protected void handleKeyName(WSPasswordCallback callback) throws IOException, UnsupportedCallbackException {
|
||||
try {
|
||||
String identifier = callback.getIdentifer();
|
||||
String identifier = callback.getIdentifier();
|
||||
Key key = keyStore.getKey(identifier, symmetricKeyPassword);
|
||||
if (key instanceof SecretKey) {
|
||||
callback.setKey(key.getEncoded());
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2008 the original author or authors.
|
||||
* Copyright 2002-2009 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -60,13 +60,13 @@ public class SimplePasswordValidationCallbackHandler extends AbstractWsPasswordC
|
||||
}
|
||||
|
||||
protected void handleUsernameToken(WSPasswordCallback callback) throws IOException, UnsupportedCallbackException {
|
||||
String identifier = callback.getIdentifer();
|
||||
String identifier = callback.getIdentifier();
|
||||
callback.setPassword(users.getProperty(identifier));
|
||||
}
|
||||
|
||||
protected void handleUsernameTokenUnknown(WSPasswordCallback callback)
|
||||
throws IOException, UnsupportedCallbackException {
|
||||
String identifier = callback.getIdentifer();
|
||||
String identifier = callback.getIdentifier();
|
||||
String storedPassword = users.getProperty(identifier);
|
||||
String givenPassword = callback.getPassword();
|
||||
if (storedPassword == null || !storedPassword.equals(givenPassword)) {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2008 the original author or authors.
|
||||
* Copyright 2002-2009 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -68,7 +68,7 @@ public class SpringDigestPasswordValidationCallbackHandler extends AbstractWsPas
|
||||
}
|
||||
|
||||
protected void handleUsernameToken(WSPasswordCallback callback) throws IOException, UnsupportedCallbackException {
|
||||
String identifier = callback.getIdentifer();
|
||||
String identifier = callback.getIdentifier();
|
||||
UserDetails user = loadUserDetails(identifier);
|
||||
if (user != null) {
|
||||
callback.setPassword(user.getPassword());
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2008 the original author or authors.
|
||||
* Copyright 2002-2009 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -70,7 +70,7 @@ public class SpringPlainTextPasswordValidationCallbackHandler extends AbstractWs
|
||||
|
||||
protected void handleUsernameTokenUnknown(WSPasswordCallback callback)
|
||||
throws IOException, UnsupportedCallbackException {
|
||||
String identifier = callback.getIdentifer();
|
||||
String identifier = callback.getIdentifier();
|
||||
try {
|
||||
Authentication authResult = authenticationManager
|
||||
.authenticate(new UsernamePasswordAuthenticationToken(identifier, callback.getPassword()));
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2008 the original author or authors.
|
||||
* Copyright 2002-2009 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -70,7 +70,7 @@ public class AcegiDigestPasswordValidationCallbackHandler extends AbstractWsPass
|
||||
}
|
||||
|
||||
protected void handleUsernameToken(WSPasswordCallback callback) throws IOException, UnsupportedCallbackException {
|
||||
String identifier = callback.getIdentifer();
|
||||
String identifier = callback.getIdentifier();
|
||||
UserDetails user = loadUserDetails(identifier);
|
||||
if (user != null) {
|
||||
callback.setPassword(user.getPassword());
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2008 the original author or authors.
|
||||
* Copyright 2002-2009 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -71,7 +71,7 @@ public class AcegiPlainTextPasswordValidationCallbackHandler extends AbstractWsP
|
||||
|
||||
protected void handleUsernameTokenUnknown(WSPasswordCallback callback)
|
||||
throws IOException, UnsupportedCallbackException {
|
||||
String identifier = callback.getIdentifer();
|
||||
String identifier = callback.getIdentifier();
|
||||
try {
|
||||
Authentication authResult = authenticationManager
|
||||
.authenticate(new UsernamePasswordAuthenticationToken(identifier, callback.getPassword()));
|
||||
|
||||
Reference in New Issue
Block a user