PHP Interface AuthBucket\OAuth2\GrantType\GrantTypeHandlerFactoryInterface

Author: Wong Hoi Sing Edison ([email protected])
Show file Open project: authbucket/oauth2

Public Methods

Method Description
getGrantTypeHandler ( string $type = null ) : AuthBucket\OAuth2\GrantType\GrantTypeHandlerInterface Gets a stored grant type handler.
getGrantTypeHandlers ( ) : array Get a list of all supported handler.

Method Details

getGrantTypeHandler() public method

Gets a stored grant type handler.
public getGrantTypeHandler ( string $type = null ) : AuthBucket\OAuth2\GrantType\GrantTypeHandlerInterface
$type string Type of grant type handler, as refer to RFC6749
return AuthBucket\OAuth2\GrantType\GrantTypeHandlerInterface The stored grant type handler

getGrantTypeHandlers() public method

Get a list of all supported handler.
public getGrantTypeHandlers ( ) : array
return array Supported handler in key-value pair