CertificateRequestProperties.HashAlgorithmName 속성

정의

인증서 요청 서명을 만들 때 사용되는 해시 알고리즘을 가져오거나 설정합니다.

public:
 property Platform::String ^ HashAlgorithmName { Platform::String ^ get(); void set(Platform::String ^ value); };
winrt::hstring HashAlgorithmName();

void HashAlgorithmName(winrt::hstring value);
public string HashAlgorithmName { get; set; }
var string = certificateRequestProperties.hashAlgorithmName;
certificateRequestProperties.hashAlgorithmName = string;
Public Property HashAlgorithmName As String

속성 값

String

Platform::String

winrt::hstring

해시 알고리즘.

예제

public String GetSetHashAlgorithm(String strAlgNameIn)
{
    // Create a new CertificateRequestProperties object.
    CertificateRequestProperties reqProperties = new CertificateRequestProperties();

    // The default value is SHA256.
    String strDefaultAlgName = reqProperties.HashAlgorithmName;

    // If the input option does not equal the default option, reset the property value.
    if (strAlgNameIn != strDefaultAlgName)
    {
        reqProperties.HashAlgorithmName = strAlgNameIn;
    }

    // Return the algorithm name.
    return reqProperties.HashAlgorithmName;
}

설명

기본값은 SHA256입니다.

적용 대상