You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mina.apache.org by ng...@apache.org on 2011/05/24 23:15:36 UTC
svn commit: r1127294 - in
/mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/authorization:
Plain.java UserAuthorization.java
Author: ngn
Date: Tue May 24 21:15:36 2011
New Revision: 1127294
URL: http://svn.apache.org/viewvc?rev=1127294&view=rev
Log:
Deprecating verifyCredentials(String, String, Object)
Modified:
mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/authorization/Plain.java
mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/authorization/UserAuthorization.java
Modified: mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/authorization/Plain.java
URL: http://svn.apache.org/viewvc/mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/authorization/Plain.java?rev=1127294&r1=1127293&r2=1127294&view=diff
==============================================================================
--- mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/authorization/Plain.java (original)
+++ mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/authorization/Plain.java Tue May 24 21:15:36 2011
@@ -101,7 +101,7 @@ public class Plain implements SASLMechan
}
boolean authorized = sessionContext.getServerRuntimeContext().getUserAuthorization().verifyCredentials(
- username, password, null);
+ initiatingEntity, password, null);
if (authorized) {
sessionContext.setInitiatingEntity(initiatingEntity);
Modified: mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/authorization/UserAuthorization.java
URL: http://svn.apache.org/viewvc/mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/authorization/UserAuthorization.java?rev=1127294&r1=1127293&r2=1127294&view=diff
==============================================================================
--- mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/authorization/UserAuthorization.java (original)
+++ mina/vysper/trunk/server/core/src/main/java/org/apache/vysper/xmpp/authorization/UserAuthorization.java Tue May 24 21:15:36 2011
@@ -31,12 +31,12 @@ import org.apache.vysper.xmpp.addressing
public interface UserAuthorization extends StorageProvider {
/**
- * {@link #verifyCredentials(String, String, Object)}
+ * checks if the supplied credentials are correct and match
*/
boolean verifyCredentials(Entity jid, String passwordCleartext, Object credentials);
/**
- * checks if the supplied credentials are correct and match
+ * @deprecated Use {@link #verifyCredentials(Entity, String, Object)} instead
*/
boolean verifyCredentials(String username, String passwordCleartext, Object credentials);