package com.gebweb.items.server.facebook;

import org.apache.shiro.authc.AuthenticationInfo;
import org.apache.shiro.authc.AuthenticationToken;
import org.apache.shiro.authc.credential.CredentialsMatcher;

/**
 * Just checks that the info is of the right kind. Authentication
 * is handled by FB.
 * @author geir
 *
 */
public class FacebookCredentialsMatcher implements CredentialsMatcher {
  @Override
  public boolean doCredentialsMatch(AuthenticationToken token,
                                    AuthenticationInfo info) {
    return (info instanceof FacebookAuthenticationInfo);
  }
}
