ZF\Apigility\Admin\Model\AuthenticationEntity::isDigest PHP Method

isDigest() public method

public isDigest ( )
    public function isDigest()
    {
        return $this->type === self::TYPE_DIGEST;
    }

Usage Example

 public function testCanSpecifyOauth2TypeDuringInstantiation()
 {
     $entity = new AuthenticationEntity(AuthenticationEntity::TYPE_OAUTH2);
     $this->assertFalse($entity->isBasic());
     $this->assertFalse($entity->isDigest());
     $this->assertTrue($entity->isOAuth2());
 }
All Usage Examples Of ZF\Apigility\Admin\Model\AuthenticationEntity::isDigest