public function getAuthCredential($credential = null, $app = null)
{
if (!$this->getAuth()) {
return false;
}
$credentials = $this->_getAuthCredentials($app);
return is_null($credential) ? $credentials : (is_array($credentials) && isset($credentials[$credential]) ? $credentials[$credential] : false);
}