ShopPlatform.Web 1.0.0.0
농산물, 소프트웨어 라이선스와 개발 용역을 직접 판매하는 CodeMaru 직영 쇼핑몰입니다.
로딩중...
검색중...
일치하는것 없음
ShopPlatform.Services.PaymentKeyProtector 클래스 참조sealed

더 자세히 ...

Public 멤버 함수

 PaymentKeyProtector (IDataProtectionProvider provider)
string Protect (string plainText)
string? Unprotect (string? cipherText)

Private 속성

readonly IDataProtector _protector

상세한 설명

DataProtection을 이용해 결제 시크릿 키를 암호화/복호화.

PaymentKeyProtector.cs 파일의 13 번째 라인에서 정의되었습니다.

생성자 & 소멸자 문서화

◆ PaymentKeyProtector()

ShopPlatform.Services.PaymentKeyProtector.PaymentKeyProtector ( IDataProtectionProvider provider)
inline

지정한 설정으로 PaymentKeyProtector 클래스의 새 인스턴스를 초기화합니다.

매개변수
providerprovider에 사용할 IDataProtectionProvider 값입니다.

PaymentKeyProtector.cs 파일의 41 번째 라인에서 정의되었습니다.

42 => _protector = provider.CreateProtector("ShopPlatform.PaymentKeys");

다음을 참조함 : _protector.

멤버 함수 문서화

◆ Protect()

string ShopPlatform.Services.PaymentKeyProtector.Protect ( string plainText)
inline

Protect 작업을 수행합니다.

매개변수
plainTextplain Text에 사용할 string 값입니다.
반환값
Protect 작업에서 생성한 string 결과입니다.

PaymentKeyProtector.cs 파일의 68 번째 라인에서 정의되었습니다.

68=> _protector.Protect(plainText);

다음을 참조함 : _protector.

다음에 의해서 참조됨 : ShopPlatform.Data.ShopSeeder.SeedCodemaruAsync().

이 함수를 호출하는 함수들에 대한 그래프입니다.:

◆ Unprotect()

string? ShopPlatform.Services.PaymentKeyProtector.Unprotect ( string? cipherText)
inline

Unprotect 작업을 수행합니다.

매개변수
cipherTextcipher Text에 사용할 string? 값입니다.
반환값
Unprotect 작업에서 생성한 string? 결과입니다.

PaymentKeyProtector.cs 파일의 94 번째 라인에서 정의되었습니다.

95 {
96 if (string.IsNullOrEmpty(cipherText)) return null;
97 try { return _protector.Unprotect(cipherText); }
98 catch { return null; }
99 }

다음을 참조함 : _protector.

멤버 데이터 문서화

◆ _protector

readonly IDataProtector ShopPlatform.Services.PaymentKeyProtector._protector
private

protector 값을 보관합니다.

PaymentKeyProtector.cs 파일의 23 번째 라인에서 정의되었습니다.

다음에 의해서 참조됨 : PaymentKeyProtector(), Protect(), Unprotect().


이 클래스에 대한 문서화 페이지는 다음의 파일로부터 생성되었습니다.: