C# 클래스 Conjur.Client

Conjur API client.
파일 보기 프로젝트 열기: conjurinc/api-dotnet 1 사용 예제들

공개 메소드들

메소드 설명
AuthenticatedRequest ( string path ) : WebRequest

Create an authenticated WebRequest for the specified path.

Client ( string applianceUri ) : System

Initializes a new instance of the Conjur.Client class.

CreateHost ( string name, string hostFactoryToken ) : Host

Creates a host using a host factory token.

GetAccountName ( ) : string

Gets the name of the Conjur organization account.

LogIn ( NetworkCredential credential ) : string

Logs in using a password. Sets Authenticator Credential

LogIn ( string userName, string password ) : string

Logs in using a password. Sets Authenticator Credential

Request ( string path ) : WebRequest

Create a WebRequest for the specified path.

Resource ( string kind, string id ) : Resource

Creates an object representing a Conjur resource.

ValidateBaseUri ( ) : Uri

Validates the appliance base URI. Tries to connect to /info; if not successful, try again adding an /api prefix. Also sets up certificate validation.

Variable ( string name ) : Variable

Creates an object representing the named variable.

비공개 메소드들

메소드 설명
ApplyAuthentication ( WebRequest webRequest ) : WebRequest
Info ( ) : ServerInfo

Get the server info.

NormalizeBaseUri ( string uri ) : Uri

Normalizes the base URI, removing double slashes and adding a trailing slash, as necessary.

ValidateCertificate ( object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors ) : bool

Validates the Conjur appliance certificate. RemoteCertificateValidationCallback

메소드 상세

AuthenticatedRequest() 공개 메소드

Create an authenticated WebRequest for the specified path.
public AuthenticatedRequest ( string path ) : WebRequest
path string Path, NOT including the leading slash.
리턴 System.Net.WebRequest

Client() 공개 메소드

Initializes a new instance of the Conjur.Client class.
public Client ( string applianceUri ) : System
applianceUri string Appliance URI.
리턴 System

CreateHost() 공개 메소드

Creates a host using a host factory token.
public CreateHost ( string name, string hostFactoryToken ) : Host
name string Name of the host to create.
hostFactoryToken string Host factory token.
리턴 Host

GetAccountName() 공개 메소드

Gets the name of the Conjur organization account.
public GetAccountName ( ) : string
리턴 string

LogIn() 공개 메소드

Logs in using a password. Sets Authenticator Credential
public LogIn ( NetworkCredential credential ) : string
credential System.Net.NetworkCredential The credential of user name and password, /// where user name is for example "bob" or "host/jenkins".
리턴 string

LogIn() 공개 메소드

Logs in using a password. Sets Authenticator Credential
public LogIn ( string userName, string password ) : string
userName string User name to log in as (for example "bob" /// or "host/example.com".
password string Password of the user.
리턴 string

Request() 공개 메소드

Create a WebRequest for the specified path.
public Request ( string path ) : WebRequest
path string Path, NOT including the leading slash.
리턴 System.Net.WebRequest

Resource() 공개 메소드

Creates an object representing a Conjur resource.
public Resource ( string kind, string id ) : Resource
kind string Resource kind.
id string Resource identifier.
리턴 Resource

ValidateBaseUri() 공개 메소드

Validates the appliance base URI. Tries to connect to /info; if not successful, try again adding an /api prefix. Also sets up certificate validation.
public ValidateBaseUri ( ) : Uri
리턴 System.Uri

Variable() 공개 메소드

Creates an object representing the named variable.
public Variable ( string name ) : Variable
name string The variable name.
리턴 Variable