Table of Contents

Class SecurityBase

Namespace
Steeltoe.Management.Endpoint.CloudFoundry
Assembly
Steeltoe.Management.EndpointBase.dll
public class SecurityBase
Inheritance
SecurityBase
Inherited Members

Constructors

SecurityBase(ICloudFoundryOptions, ILogger)

[Obsolete("Use Exposure Options instead.")]
public SecurityBase(ICloudFoundryOptions options, ILogger logger = null)

Parameters

options ICloudFoundryOptions
logger ILogger

SecurityBase(ICloudFoundryOptions, IManagementOptions, ILogger, HttpClient)

public SecurityBase(ICloudFoundryOptions options, IManagementOptions mgmtOptions, ILogger logger = null, HttpClient httpClient = null)

Parameters

options ICloudFoundryOptions
mgmtOptions IManagementOptions
logger ILogger
httpClient HttpClient

Fields

ACCESS_DENIED_MESSAGE

public readonly string ACCESS_DENIED_MESSAGE

Field Value

string

APPLICATION_ID_MISSING_MESSAGE

public readonly string APPLICATION_ID_MISSING_MESSAGE

Field Value

string

AUTHORIZATION_HEADER

public readonly string AUTHORIZATION_HEADER

Field Value

string

AUTHORIZATION_HEADER_INVALID

public readonly string AUTHORIZATION_HEADER_INVALID

Field Value

string

BEARER

public readonly string BEARER

Field Value

string

CLOUDFOUNDRY_API_MISSING_MESSAGE

public readonly string CLOUDFOUNDRY_API_MISSING_MESSAGE

Field Value

string

CLOUDFOUNDRY_NOT_REACHABLE_MESSAGE

public readonly string CLOUDFOUNDRY_NOT_REACHABLE_MESSAGE

Field Value

string

DEFAULT_GETPERMISSIONS_TIMEOUT

public readonly int DEFAULT_GETPERMISSIONS_TIMEOUT

Field Value

int

ENDPOINT_NOT_CONFIGURED_MESSAGE

public readonly string ENDPOINT_NOT_CONFIGURED_MESSAGE

Field Value

string

READ_SENSITIVE_DATA

public readonly string READ_SENSITIVE_DATA

Field Value

string

Methods

GetPermissions(HttpResponseMessage)

public Task<Permissions> GetPermissions(HttpResponseMessage response)

Parameters

response HttpResponseMessage

Returns

Task<Permissions>

GetPermissionsAsync(string)

public Task<SecurityResult> GetPermissionsAsync(string token)

Parameters

token string

Returns

Task<SecurityResult>

IsCloudFoundryRequest(string)

public bool IsCloudFoundryRequest(string requestPath)

Parameters

requestPath string

Returns

bool

Serialize(SecurityResult)

public string Serialize(SecurityResult error)

Parameters

error SecurityResult

Returns

string