ResourceCredentials Class

A shim that represents a conflation of SecureCredentials and Inedo.Extensibility.SecureResources.SecureResource, which was used prior to the introduction of those classes

Inheritance Hierarchy

Syntax

public class ResourceCredentials : SecureCredentials

Constructors

Name Description
ResourceCredentials

Initializes a new instance of the ResourceCredentials class.

Properties

Name Description
ApplicationId

The application ID associated with the credential.

EnvironmentId

The environment ID associated with the credential.

Methods

Name Description
Create<TCredential>(string credentialName)

Creates a ResourceCredentials from the specified type and name.

Create(string credentialTypeName, string credentialName)

Creates a ResourceCredentials from the specified type name and name.

Create(string credentialTypeName, string credentialName, int? environmentId, int? applicationId, bool inheritFromParent)

Creates a ResourceCredentials from the specified type name and name.

ToSecureCredentials

Provides a SecureCredentials for this instance

ToSecureResource

Provides a Inedo.Extensibility.SecureResources.SecureResource for this instance

TryCreate<TCredential>(string credentialName)

Creates a ResourceCredentials from the specified type and name.

TryCreate(string credentialTypeName, string credentialName)

Creates a ResourceCredentials from the specified type name and name.

TryCreate(string credentialTypeName, string credentialName, int? environmentId, int? applicationId, bool inheritFromParent)

Creates a ResourceCredentials from the specified type name and name.

Remarks

You should implement a Inedo.Extensibility.SecureResources.SecureResource and SecureCredentials and instead