Table of Contents

Class ProtectedJsonFileStorageMigration

Namespace: XboxAuthNet.Game.WindowsSecurity
Assembly: XboxAuthNet.Game.WindowsSecurity.dll

public static class ProtectedJsonFileStorageMigration

Inheritance

object ← ProtectedJsonFileStorageMigration

Inherited Members

object.Equals(object), object.Equals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object, object), object.ToString()

Methods

TryMigrate(string, string)

평문 JSON 파일을 현재 사용자의 암호화 저장소로 옮긴다.

public static bool TryMigrate(string jsonFilePath, string protectedFilePath)

Parameters

jsonFilePath string

마이그레이션할 평문 계정 JSON 파일의 경로.

protectedFilePath string

암호화된 계정 파일을 생성할 경로.

Returns

bool

이동을 완료하면 true, 원본이 없거나 대상 파일이 이미 있으면 false를 반환한다.

Remarks

JSON 구조와 알 수 없는 필드를 유지하며 계정 형식 자체는 변환하지 않는다. 암호화 파일 저장 후 원본을 삭제한다. 파싱·암호화·파일 작업 오류는 호출자에게 전달한다.