@tsonic/dotnet
Version:
TypeScript type definitions for .NET 10 BCL (Base Class Library)
123 lines (96 loc) • 4.32 kB
TypeScript
// Generated by tsbindgen - Architecture
// Namespace: System.Security.Authentication
// Assembly: System.Net.Primitives, System.Net.Security
// Branded primitive types are sourced from @tsonic/types
import type { sbyte, byte, short, ushort, int, uint, long, ulong, int128, uint128, half, float, double, decimal, nint, nuint, char } from '@tsonic/types';
// Import types from other namespaces
import type { IDictionary } from "../../System.Collections/internal/index.js";
import type { MethodBase } from "../../System.Reflection/internal/index.js";
import * as System_Runtime_Serialization_Internal from "../../System.Runtime.Serialization/internal/index.js";
import type { ISerializable, SerializationInfo, StreamingContext } from "../../System.Runtime.Serialization/internal/index.js";
import * as System_Internal from "../../System/internal/index.js";
import type { Boolean as ClrBoolean, Enum, Exception, IComparable, IConvertible, IFormatProvider, IFormattable, Int32, ISpanFormattable, Object as ClrObject, String as ClrString, SystemException, Type, TypeCode, Void } from "../../System/internal/index.js";
// CLROf<T> - Maps ergonomic primitives to their CLR types for generic constraints
// This utility is used ONLY in generic type arguments to satisfy CLR interface constraints
// Value positions (parameters, return types) use lowercase primitives for ergonomics
export type CLROf<T> =
T extends sbyte ? System_Internal.SByte :
T extends short ? System_Internal.Int16 :
T extends int ? System_Internal.Int32 :
T extends long ? System_Internal.Int64 :
T extends int128 ? System_Internal.Int128 :
T extends nint ? System_Internal.IntPtr :
T extends byte ? System_Internal.Byte :
T extends ushort ? System_Internal.UInt16 :
T extends uint ? System_Internal.UInt32 :
T extends ulong ? System_Internal.UInt64 :
T extends uint128 ? System_Internal.UInt128 :
T extends nuint ? System_Internal.UIntPtr :
T extends half ? System_Internal.Half :
T extends float ? System_Internal.Single :
T extends double ? System_Internal.Double :
T extends decimal ? System_Internal.Decimal :
T extends char ? System_Internal.Char :
T extends boolean ? System_Internal.Boolean :
T extends string ? System_Internal.String :
T; // Identity fallback for non-primitive types
export enum CipherAlgorithmType {
none = 0,
rc2 = 26114,
rc4 = 26625,
des = 26113,
tripleDes = 26115,
aes = 26129,
aes128 = 26126,
aes192 = 26127,
aes256 = 26128,
null_ = 24576
}
export enum ExchangeAlgorithmType {
none = 0,
rsaSign = 9216,
rsaKeyX = 41984,
diffieHellman = 43522
}
export enum HashAlgorithmType {
none = 0,
md5 = 32771,
sha1 = 32772,
sha256 = 32780,
sha384 = 32781,
sha512 = 32782
}
export enum SslProtocols {
none = 0,
ssl2 = 12,
ssl3 = 48,
tls = 192,
tls11 = 768,
tls12 = 3072,
tls13 = 12288,
default_ = 240
}
export interface AuthenticationException$instance extends SystemException {
getObjectData(info: SerializationInfo, context: StreamingContext): void;
}
export const AuthenticationException: {
new(): AuthenticationException$instance;
new(message: string): AuthenticationException$instance;
new(message: string, innerException: Exception): AuthenticationException$instance;
};
export interface __AuthenticationException$views {
As_ISerializable(): System_Runtime_Serialization_Internal.ISerializable$instance;
}
export type AuthenticationException = AuthenticationException$instance & __AuthenticationException$views;
export interface InvalidCredentialException$instance extends AuthenticationException$instance {
getObjectData(info: SerializationInfo, context: StreamingContext): void;
}
export const InvalidCredentialException: {
new(): InvalidCredentialException$instance;
new(message: string): InvalidCredentialException$instance;
new(message: string, innerException: Exception): InvalidCredentialException$instance;
};
export interface __InvalidCredentialException$views {
As_ISerializable(): System_Runtime_Serialization_Internal.ISerializable$instance;
}
export type InvalidCredentialException = InvalidCredentialException$instance & __InvalidCredentialException$views;