fix wrong UnsupportedTokenException

This commit is contained in:
Sebastian Sdorra
2012-08-26 17:42:58 +02:00
parent 5d1cad77b4
commit 692c2ef7cd

View File

@@ -217,7 +217,7 @@ public class ScmRealm extends AuthorizingRealm
AuthenticationToken authToken)
throws AuthenticationException
{
if ((authToken instanceof ScmAuthenticationToken))
if (!(authToken instanceof ScmAuthenticationToken))
{
throw new UnsupportedTokenException("ScmAuthenticationToken is required");
}