WebApplicationCredential WebApplicationCredential WebApplicationCredential Class

Definition

Enables web applications to authenticate themselves, with or without the authentication context of a user.

public class WebApplicationCredential : Microsoft.Health.Authentication.Credential
type WebApplicationCredential = class
    inherit Credential
Public Class WebApplicationCredential
Inherits Credential
Inheritance
WebApplicationCredentialWebApplicationCredentialWebApplicationCredential

Remarks

Web applications can authenticate in two modes:

First, an application can authenticate itself in the anonymous mode, that is, not in the context of a user. This mode enables application servers to communicate with the HealthVault Service as a trusted operation, but not explicitly on behalf of a user.

Secondly, an application can authenticate itself in the context of a user. This mode enables applications to communicate with the HealthVault Service both as a trusted operation and in the user context. The application can therefore explicitly perform operations as that user or as trusted operations as in the anonymous case.

The credential proves the application's identity by signing the authentication request with the application's private key. The user's context is provided by the property.

Constructors

WebApplicationCredential() WebApplicationCredential() WebApplicationCredential()

Creates a new instance of the WebApplicationCredential class with default values.

WebApplicationCredential(Guid) WebApplicationCredential(Guid) WebApplicationCredential(Guid)

Creates a new instance of the WebApplicationCredential class with the default values and in the anonymous context.

WebApplicationCredential(Guid, StoreLocation, String) WebApplicationCredential(Guid, StoreLocation, String) WebApplicationCredential(Guid, StoreLocation, String)

Creates a new instance of the WebApplicationCredential class using the specified parameters

WebApplicationCredential(Guid, String) WebApplicationCredential(Guid, String) WebApplicationCredential(Guid, String)

Creates a new instance of the WebApplicationCredential class using the specified application identifier and sub-credential.

WebApplicationCredential(Guid, String, X509Certificate2) WebApplicationCredential(Guid, String, X509Certificate2) WebApplicationCredential(Guid, String, X509Certificate2)

Creates a new instance of the WebApplicationCredential class using the specified application identifier and sub-credential.

WebApplicationCredential(Guid, X509Certificate2) WebApplicationCredential(Guid, X509Certificate2) WebApplicationCredential(Guid, X509Certificate2)

Creates a new instance of the WebApplicationCredential class with the specified application certificate.

Properties

ApplicationId ApplicationId ApplicationId

Gets or sets the application identifier of the credential.

SharedSecret SharedSecret SharedSecret

Gets or sets the credential's shared secret.

(Inherited from Credential)
SubCredential SubCredential SubCredential

Gets or sets the sub-credential.

Methods

AuthenticateWebApplicationData(Byte[], Int32, Int32) AuthenticateWebApplicationData(Byte[], Int32, Int32) AuthenticateWebApplicationData(Byte[], Int32, Int32)

Provides a mechanism for derived classes to override how this class authenticates data.

CreateAuthenticatedSessionToken(HealthServiceConnection, Guid) CreateAuthenticatedSessionToken(HealthServiceConnection, Guid) CreateAuthenticatedSessionToken(HealthServiceConnection, Guid)

Gets an authentication token in the context of the credential.

(Inherited from Credential)
GetAuthenticationResult(Guid) GetAuthenticationResult(Guid) GetAuthenticationResult(Guid)

Gets the credential's authentication results from prior successful authentications with the Microsoft HealthVault service.

(Inherited from Credential)
WriteInfoXml(XmlWriter) WriteInfoXml(XmlWriter) WriteInfoXml(XmlWriter)

Writes the XML that is used when authenticating with the HealthVault Service.

Applies to