<?php

declare (strict_types=1);
namespace idoit\Module\JDisc\Graphql\Schema\Model;

use Axtiva\FlexibleGraphql\Generator\Exception\UnknownEnumValue;
use Axtiva\FlexibleGraphql\Type\EnumInterface;

/**
 * This code is @generated by axtiva/flexible-graphql-php
 * and will be regenerated. Do not edit it manually
 * PHP representation of graphql enum PublicKeyEncryptionType
 * The certificate type
 */
final class PublicKeyEncryptionTypeEnum implements EnumInterface
{
    public const RSA = 'RSA';
    public const MD2WithRSA = 'MD2WithRSA';
    public const MD4WithRSA = 'MD4WithRSA';
    public const MD5WithRSA = 'MD5WithRSA';
    public const SHA1WithRSA = 'SHA1WithRSA';
    public const RSAOAEP = 'RSAOAEP';
    public const RSAESOAEP = 'RSAESOAEP';
    public const RSAMGF1 = 'RSAMGF1';
    public const RSASZOID = 'RSASZOID';
    public const RRSASSA_PSS = 'RRSASSA_PSS';
    public const RSA_SHA256 = 'RSA_SHA256';
    public const RSA_SHA384 = 'RSA_SHA384';
    public const RSA_SHA512 = 'RSA_SHA512';
    public const RSA_SHA224 = 'RSA_SHA224';
    public const X9 = 'X9';
    public const SHA1ECDSA = 'SHA1ECDSA';
    public const SHA256ECDSA = 'SHA256ECDSA';
    public const SHA384ECDSA = 'SHA384ECDSA';
    public const SHA512ECDSA = 'SHA512ECDSA';
    public string $value;
    private static array $map = [
        self::RSA => true,
        self::MD2WithRSA => true,
        self::MD4WithRSA => true,
        self::MD5WithRSA => true,
        self::SHA1WithRSA => true,
        self::RSAOAEP => true,
        self::RSAESOAEP => true,
        self::RSAMGF1 => true,
        self::RSASZOID => true,
        self::RRSASSA_PSS => true,
        self::RSA_SHA256 => true,
        self::RSA_SHA384 => true,
        self::RSA_SHA512 => true,
        self::RSA_SHA224 => true,
        self::X9 => true,
        self::SHA1ECDSA => true,
        self::SHA256ECDSA => true,
        self::SHA384ECDSA => true,
        self::SHA512ECDSA => true,
    ];

    public function __construct($value)
    {
        if (!isset(self::$map[$value])) {
            throw new UnknownEnumValue(__CLASS__, $value);
        }
        $this->value = $value;
    }

    public function __toString(): string
    {
        return $this->value;
    }
}