C# Class AdmPwd.PDS.AzureKeyStore.AzureKeyVaultStore

Inheritance: IKeyStore
Mostrar archivo Open project: jformacek/laps-e Class Usage Examples

Protected Properties

Property Type Description
_aadInstance string
_apiVersion string
_appKey string
_area string
_clientId string
_vaultUri System.Uri
resource string

Public Methods

Method Description
AzureKeyVaultStore ( ) : System
Decrypt ( uint keyID, string EncryptedPwd ) : string
GenerateKeyPair ( int KeySize ) : uint
GetPublicKey ( uint KeyID ) : string

Protected Methods

Method Description
Authenticate ( ) : Task
LoadKeys ( ) : System.Threading.Tasks.Task
SaveSecret ( SecretUpdate secret, string secretName ) : System.Threading.Tasks.Task

Method Details

Authenticate() protected method

protected Authenticate ( ) : Task
return Task

AzureKeyVaultStore() public method

public AzureKeyVaultStore ( ) : System
return System

Decrypt() public method

public Decrypt ( uint keyID, string EncryptedPwd ) : string
keyID uint
EncryptedPwd string
return string

GenerateKeyPair() public method

public GenerateKeyPair ( int KeySize ) : uint
KeySize int
return uint

GetPublicKey() public method

public GetPublicKey ( uint KeyID ) : string
KeyID uint
return string

LoadKeys() protected method

protected LoadKeys ( ) : System.Threading.Tasks.Task
return System.Threading.Tasks.Task

SaveSecret() protected method

protected SaveSecret ( SecretUpdate secret, string secretName ) : System.Threading.Tasks.Task
secret SecretUpdate
secretName string
return System.Threading.Tasks.Task

Property Details

_aadInstance protected_oe property

identifier of aad instance, such as https://login.windows.net/formacek.com
protected string _aadInstance
return string

_apiVersion protected_oe property

AAD Api version to use
protected string _apiVersion
return string

_appKey protected_oe property

application authorization key, as generated when creating application definition in AAD
protected string _appKey
return string

_area protected_oe property

This specifies subset of keys KeyStore operates with KeyVault may contain multiple sets of keys, differentiated by "Area" tag if area is not specified, all keys in KeyVault are processed by an instance of KeyStore
protected string _area
return string

_clientId protected_oe property

application ID, as created by AAD admin, such as "9873ac72-d7ed-4443-bd44-123b9247d6ed"
protected string _clientId
return string

_vaultUri protected_oe property

vault uri, such as https://laps.vault.azure.net/ Notes: Rememebr to include trailing slash
protected Uri,System _vaultUri
return System.Uri

resource protected_oe property

resource that receives REST API calls
protected string resource
return string