2015-04-05 14:03:25 +01:00
|
|
|
<?php
|
|
|
|
namespace League\OAuth2\Server\Entities\Interfaces;
|
|
|
|
|
|
|
|
interface ClientEntityInterface
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Get the client's identifier
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getIdentifier();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the client's identifier
|
2016-02-18 10:48:12 +00:00
|
|
|
*
|
2015-04-05 14:03:25 +01:00
|
|
|
* @param $identifier
|
|
|
|
*/
|
|
|
|
public function setIdentifier($identifier);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the client's name
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getName();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the client's name
|
2016-02-18 10:48:12 +00:00
|
|
|
*
|
2015-04-05 14:03:25 +01:00
|
|
|
* @param string $name
|
|
|
|
*/
|
|
|
|
public function setName($name);
|
2016-02-18 10:48:12 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param string $secret
|
|
|
|
*/
|
|
|
|
public function setSecret($secret);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Validate the secret provided by the client
|
|
|
|
*
|
|
|
|
* @param string $submittedSecret
|
|
|
|
*
|
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
public function validateSecret($submittedSecret);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the client's redirect uri
|
|
|
|
*
|
|
|
|
* @param string $redirectUri
|
|
|
|
*/
|
|
|
|
public function setRedirectUri($redirectUri);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the registered redirect URI
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getRedirectUri();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns true if the client is capable of keeping it's secrets secret
|
|
|
|
* @return boolean
|
|
|
|
*/
|
|
|
|
public function canKeepASecret();
|
2015-04-05 14:03:25 +01:00
|
|
|
}
|