SecureResource Class

Represents a resource that is secured by a Inedo.Extensibility.Credentials.SecureCredentials

Inheritance Hierarchy

Syntax

public class SecureResource

Constructors

Name Description
SecureResource

Properties

Name Description
CompatibleCredentials

The compatible types of Inedo.Extensibility.Credentials.SecureCredentials that can be used with this type

CredentialName

The name of the credential to use, which may be fully qualified with the scope resolution operator.

Methods

Name Description
Create(string resourceName, IResourceResolutionContext context)

Creates the SecureResource associated with the resourceName and specified context

GetCredentials(Inedo.Extensibility.Credentials.ICredentialResolutionContext context)

Returns the Inedo.Extensibility.Credentials.SecureCredentials associated with the CredentialName and specified context, or null (Nothing in Visual Basic) if CredentialName is null (Nothing in Visual Basic)

GetDescription

Describes the credential with non-sensitive information

TryCreate(string resourceName, IResourceResolutionContext context)

Wraps Create(string resourceName, IResourceResolutionContext context) but will return null (Nothing in Visual Basic) instead of throwing an exception

ValidateAsync(Inedo.Diagnostics.ILogSink log, Inedo.Extensibility.Credentials.ICredentialResolutionContext context)

Performs a basic validation against the state of the resource for UI purposes