C# 클래스 Elastacloud.AzureManagement.Fluent.Helpers.PublishSettings.PublishSettingsExtractor

Used to get certificates from the store or from .publishsettings
파일 보기 프로젝트 열기: azurecoder/fluent-management 1 사용 예제들

공개 메소드들

메소드 설명
AddAllPublishSettingsCertificatesToPersonalMachineStore ( string subscriptionId = null ) : List

Publishsettings file added to the machine store with the subcription id

AddPublishSettingsToPersonalMachineStore ( StoreLocation location = StoreLocation.CurrentUser ) : X509Certificate2

Takes an xml document and adds to a store

AddPublishSettingsToPersonalMachineStore ( string xml, StoreLocation location = StoreLocation.CurrentUser ) : X509Certificate2

Adds a certificate to the local machine personal store

Extract ( string fileNameOut ) : void

Will extract a .publishsettings file certificate and then export as a .cer file

ExtractCertObject ( System.IO.FileType type ) : X509Certificate2

Used to extract a certificate from a file

ExtractPfxObject ( string password ) : X509Certificate2

Used to extract a pfk from a file

FromStore ( string thumbprint, StoreLocation location = StoreLocation.CurrentUser ) : X509Certificate2

Checks through the CurrentUser and LocalMachine Personal and AuthRoot stores

GetCertificateFromFile ( string managementCertificate = null, StoreLocation location = StoreLocation.CurrentUser ) : X509Certificate2

Gets the certificate data from a file - can be a .cer file or publishsettings - exports the private key with the certificate

GetCertificateFromXml ( string xml, StoreLocation location = StoreLocation.CurrentUser ) : X509Certificate2
GetCertificateThumbprint ( ) : string

Gets the certificate thumbprint value from the publishsettings xml

GetFromFile ( string file ) : PublishSettingsExtractor

Returns a PublishSettingsExtractor given a valid path

GetFromXml ( string xml ) : PublishSettingsExtractor

Returns a PublishSettingsExtractor given a valid xml document

GetSubscriptions ( ) : List

Gets a list of subscriptions in a .publishsettings file

PublishSettingsExtractor ( string filePath, bool xmlContent = false ) : System

Used to construct a publishsetting extractor class

RemoveFromStore ( string thumbprint, StoreLocation location = StoreLocation.CurrentUser ) : void

Remove a publishsettings file from the store

this ( string subscriptionId ) : Subscription

The indexer takes a subscription id string and returns a Subscription

비공개 메소드들

메소드 설명
FromStore ( string thumbprint, StoreName storeName, StoreLocation location = StoreLocation.CurrentUser ) : X509Certificate2

Used to check whether the certificate is in the underlying storename and location

Parse ( ) : void

Used to parse a .publishsettings file to determine the schema

메소드 상세

AddAllPublishSettingsCertificatesToPersonalMachineStore() 공개 메소드

Publishsettings file added to the machine store with the subcription id
public AddAllPublishSettingsCertificatesToPersonalMachineStore ( string subscriptionId = null ) : List
subscriptionId string
리턴 List

AddPublishSettingsToPersonalMachineStore() 공개 메소드

Takes an xml document and adds to a store
public AddPublishSettingsToPersonalMachineStore ( StoreLocation location = StoreLocation.CurrentUser ) : X509Certificate2
location StoreLocation
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2

AddPublishSettingsToPersonalMachineStore() 공개 정적인 메소드

Adds a certificate to the local machine personal store
public static AddPublishSettingsToPersonalMachineStore ( string xml, StoreLocation location = StoreLocation.CurrentUser ) : X509Certificate2
xml string
location StoreLocation
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2

Extract() 공개 메소드

Will extract a .publishsettings file certificate and then export as a .cer file
public Extract ( string fileNameOut ) : void
fileNameOut string
리턴 void

ExtractCertObject() 공개 메소드

Used to extract a certificate from a file
public ExtractCertObject ( System.IO.FileType type ) : X509Certificate2
type System.IO.FileType
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2

ExtractPfxObject() 공개 메소드

Used to extract a pfk from a file
public ExtractPfxObject ( string password ) : X509Certificate2
password string
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2

FromStore() 공개 정적인 메소드

Checks through the CurrentUser and LocalMachine Personal and AuthRoot stores
public static FromStore ( string thumbprint, StoreLocation location = StoreLocation.CurrentUser ) : X509Certificate2
thumbprint string
location StoreLocation
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificateFromFile() 공개 메소드

Gets the certificate data from a file - can be a .cer file or publishsettings - exports the private key with the certificate
public GetCertificateFromFile ( string managementCertificate = null, StoreLocation location = StoreLocation.CurrentUser ) : X509Certificate2
managementCertificate string
location StoreLocation
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificateFromXml() 공개 정적인 메소드

public static GetCertificateFromXml ( string xml, StoreLocation location = StoreLocation.CurrentUser ) : X509Certificate2
xml string
location StoreLocation
리턴 System.Security.Cryptography.X509Certificates.X509Certificate2

GetCertificateThumbprint() 공개 메소드

Gets the certificate thumbprint value from the publishsettings xml
public GetCertificateThumbprint ( ) : string
리턴 string

GetFromFile() 공개 정적인 메소드

Returns a PublishSettingsExtractor given a valid path
public static GetFromFile ( string file ) : PublishSettingsExtractor
file string
리턴 PublishSettingsExtractor

GetFromXml() 공개 정적인 메소드

Returns a PublishSettingsExtractor given a valid xml document
public static GetFromXml ( string xml ) : PublishSettingsExtractor
xml string
리턴 PublishSettingsExtractor

GetSubscriptions() 공개 메소드

Gets a list of subscriptions in a .publishsettings file
public GetSubscriptions ( ) : List
리턴 List

PublishSettingsExtractor() 공개 메소드

Used to construct a publishsetting extractor class
public PublishSettingsExtractor ( string filePath, bool xmlContent = false ) : System
filePath string The filepath to the .publishsettings file
xmlContent bool Used to define whether the string is xml or a file
리턴 System

RemoveFromStore() 공개 정적인 메소드

Remove a publishsettings file from the store
public static RemoveFromStore ( string thumbprint, StoreLocation location = StoreLocation.CurrentUser ) : void
thumbprint string The management certificate thumbprint
location StoreLocation
리턴 void

this() 공개 메소드

The indexer takes a subscription id string and returns a Subscription
public this ( string subscriptionId ) : Subscription
subscriptionId string
리턴 Elastacloud.AzureManagement.Fluent.Types.Subscription