public function canHandle(OAuth2Request $request)
 {
     $reflector = new ReflectionClass($request);
     $class_name = $reflector->getName();
     return $class_name == 'oauth2\\requests\\OAuth2TokenRequest' && $request->isValid() && $request->getGrantType() == $this->getType();
 }
 public function canHandle(OAuth2Request $request)
 {
     $reflector = new ReflectionClass($request);
     $class_name = $reflector->getName();
     return $class_name == 'oauth2\\requests\\OAuth2AccessTokenValidationRequest' && $request->isValid();
 }