Foundation for Check Password and password functions - only Clear is currently implemented
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 32s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m23s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 3m38s
Create Docker Image / Final Docker Image Manifest (push) Successful in 10s

This commit is contained in:
2025-01-17 17:00:36 +11:00
parent ecd0aa6b40
commit f19c5594d5
15 changed files with 292 additions and 35 deletions

View File

@@ -0,0 +1,14 @@
<?php
namespace App\Classes\LDAP\Attribute\Password;
abstract class Base
{
abstract public function compare(string $source,string $compare): bool;
abstract public function encode(string $password): string;
public static function id(): string
{
return static::key;
}
}

View File

@@ -0,0 +1,18 @@
<?php
namespace App\Classes\LDAP\Attribute\Password;
final class Clear extends Base
{
public const key = 'Clear';
public function compare(string $source,string $compare): bool
{
return $source === $compare;
}
public function encode(string $password): string
{
return $password;
}
}