IPWorks Cloud 2020 C++ Edition

Questions / Feedback?

AccountAuthMechanism Property

The HTTP authentication scheme to use (for storage service providers that support multiple).

Syntax

ANSI (Cross Platform)
int GetAccountAuthMechanism();
int SetAccountAuthMechanism(int iAccountAuthMechanism); Unicode (Windows) INT GetAccountAuthMechanism();
INT SetAccountAuthMechanism(INT iAccountAuthMechanism);

Possible Values

CAM_NONE(0), 
CAM_SIMPLE(1),
CAM_BASIC(2),
CAM_NTLM(3),
CAM_NEGOTIATE(4),
CAM_OAUTH(5)
@property (nonatomic,readwrite,assign,getter=accountAuthMechanism,setter=setAccountAuthMechanism:) int accountAuthMechanism;
- (int)accountAuthMechanism;
- (void)setAccountAuthMechanism:(int)newAccountAuthMechanism;

Possible Values

CAM_NONE(0), 
CAM_SIMPLE(1),
CAM_BASIC(2),
CAM_NTLM(3),
CAM_NEGOTIATE(4),
CAM_OAUTH(5)
#define PID_CLOUDSTORAGE_ACCOUNTAUTHMECHANISM 5

IPWORKSCLOUD_EXTERNAL void* IPWORKSCLOUD_CALL IPWorksCloud_CloudStorage_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal);
IPWORKSCLOUD_EXTERNAL int IPWORKSCLOUD_CALL IPWorksCloud_CloudStorage_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal);

Default Value

0

Remarks

The HTTP authentication scheme to use (for storage service providers that support multiple).

For storage service providers that support more than one HTTP authentication scheme, this property specifies which should be used. This property is only relevant for the following storage service providers:

  • spHadoopDFS (10)
(For all other storage service providers, the class determines the correct authentication scheme automatically).

Usage

Possible values for this property are:

camNone (0) (default) No authentication is performed.
camSimple (1) Hadoop pseudo/simple authentication is performed.
camBasic (2) Basic authentication is performed.
camNTLM (3) NTLM authentication is performed.
camNegotiate (4) Negotiate authentication is performed.
camOAuth (5) OAuth authentication is performed.

When set to camSimple (1), the value of the AccountUser property is automatically sent in every request using the user.name query parameter. (Note: This authentication scheme is only valid for the spHadoopDFS (10) storage service provider.)

When set to camBasic (2), camNTLM (3), or camNegotiate (4), the values held by the AccountUser and AccountPassword properties will be used to perform Basic, NTLM, or Negotiate authentication.

When set to camOAuth (5), the value of the Authorization property is automatically sent in every request using the Authorization HTTP header.

Data Type

Integer

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks Cloud 2020 C++ Edition - Version 20.0 [Build 8265]