NuxeoDotNetClient  1.0.0 beta
.NET Client for Nuxeo Automation and REST API
Public Types | Public Member Functions | Properties | List of all members
NuxeoClient.Authorization Class Reference

Represents the Athorization credentials to be sent on every request to the nuxeo server. More...

Public Types

enum  Methods { Basic }
 The supported authorization methods. More...
 

Public Member Functions

 Authorization (string username, string password)
 Initializes a new instance of basic Authorization. More...
 
 Authorization ()
 Intializes a new instance of basic Authorization with the default credentials of the Nuxeo server (Administrator // Administrator). More...
 
string GenerateAuthorizationParameter ()
 Generates a string with the contents for the HTTP authorization header. More...
 

Properties

Methods Method [get, protected set]
 Gets the authorization method. More...
 
string Username [get, protected set]
 Gets the username. More...
 
string Password [get, protected set]
 Gets the password. More...
 

Detailed Description

Represents the Athorization credentials to be sent on every request to the nuxeo server.

Definition at line 27 of file Authorization.cs.

Member Enumeration Documentation

The supported authorization methods.

Definition at line 32 of file Authorization.cs.

Constructor & Destructor Documentation

NuxeoClient.Authorization.Authorization ( string  username,
string  password 
)

Initializes a new instance of basic Authorization.

Parameters
usernameThe username.
passwordThe password.

Definition at line 72 of file Authorization.cs.

NuxeoClient.Authorization.Authorization ( )

Intializes a new instance of basic Authorization with the default credentials of the Nuxeo server (Administrator // Administrator).

Definition at line 80 of file Authorization.cs.

Member Function Documentation

string NuxeoClient.Authorization.GenerateAuthorizationParameter ( )

Generates a string with the contents for the HTTP authorization header.

Returns
A string with the authorization header's content.

Definition at line 88 of file Authorization.cs.

Property Documentation

Methods NuxeoClient.Authorization.Method
getprotected set

Gets the authorization method.

Definition at line 42 of file Authorization.cs.

string NuxeoClient.Authorization.Password
getprotected set

Gets the password.

Definition at line 52 of file Authorization.cs.

string NuxeoClient.Authorization.Username
getprotected set

Gets the username.

Definition at line 47 of file Authorization.cs.