/* tslint:disable */
/* eslint-disable */
/**
 * authentik
 * Making authentication simple.
 *
 * The version of the OpenAPI document: 2026.5.0-rc1
 * Contact: hello@goauthentik.io
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */

/**
 *
 * @export
 */
export const DigestAlgorithmEnum = {
    HttpWwwW3Org200009Xmldsigsha1: "http://www.w3.org/2000/09/xmldsig#sha1",
    HttpWwwW3Org200104Xmlencsha256: "http://www.w3.org/2001/04/xmlenc#sha256",
    HttpWwwW3Org200104XmldsigMoresha384: "http://www.w3.org/2001/04/xmldsig-more#sha384",
    HttpWwwW3Org200104Xmlencsha512: "http://www.w3.org/2001/04/xmlenc#sha512",
    UnknownDefaultOpenApi: "11184809",
} as const;
export type DigestAlgorithmEnum = (typeof DigestAlgorithmEnum)[keyof typeof DigestAlgorithmEnum];

export function instanceOfDigestAlgorithmEnum(value: any): boolean {
    for (const key in DigestAlgorithmEnum) {
        if (Object.prototype.hasOwnProperty.call(DigestAlgorithmEnum, key)) {
            if (DigestAlgorithmEnum[key as keyof typeof DigestAlgorithmEnum] === value) {
                return true;
            }
        }
    }
    return false;
}

export function DigestAlgorithmEnumFromJSON(json: any): DigestAlgorithmEnum {
    return DigestAlgorithmEnumFromJSONTyped(json, false);
}

export function DigestAlgorithmEnumFromJSONTyped(
    json: any,
    ignoreDiscriminator: boolean,
): DigestAlgorithmEnum {
    return json as DigestAlgorithmEnum;
}

export function DigestAlgorithmEnumToJSON(value?: DigestAlgorithmEnum | null): any {
    return value as any;
}

export function DigestAlgorithmEnumToJSONTyped(
    value: any,
    ignoreDiscriminator: boolean,
): DigestAlgorithmEnum {
    return value as DigestAlgorithmEnum;
}
