IBM Cloud SDK Core
1.1.0
The IBM.Cloud.SDK.Core is a core project of SDKs generated using the IBM OpenAPI SDK generator.
|
This class implements support for the IAM authentication mechanism. More...
Public Member Functions | |
IamAuthenticator (string apikey, string url=null, string clientId=null, string clientSecret=null, bool? disableSslVerification=null, Dictionary< string, string > headers=null) | |
Constructs an IamAuthenticator with all properties. More... | |
IamAuthenticator (Dictionary< string, string > config) | |
Construct an IamAuthenticator instance using properties retrieved from the specified Map. More... | |
override void | Authenticate (IClient client) |
Perform the necessary authentication steps for the specified request. More... | |
override void | Validate () |
Validates the current set of configuration information in the Authenticator. More... | |
Protected Member Functions | |
string | GetToken () |
DetailedResponse< IamTokenResponse > | RequestToken () |
Properties | |
IClient | Client [get, set] |
string | Apikey [get] |
string | Url [get, set] |
bool | DisableSslVerification [get, set] |
string | ClientId [get, set] |
string | ClientSecret [get, set] |
Dictionary< string, string > | Headers [get, set] |
override string | AuthenticationType [get] |
Properties inherited from IBM.Cloud.SDK.Core.Authentication.Authenticator | |
virtual string | AuthenticationType [get] |
Returns the authentication type associated with the Authenticator instance. More... | |
Properties inherited from IBM.Cloud.SDK.Core.Authentication.IAuthenticator | |
string | AuthenticationType [get] |
Returns the authentication type associated with the AuthenticatorConfig instance. More... | |
Additional Inherited Members | |
Public Attributes inherited from IBM.Cloud.SDK.Core.Authentication.Authenticator | |
const string | AuthTypeBasic = "basic" |
These are the valid authentication types. More... | |
const string | AuthTypeNoAuth = "noAuth" |
const string | AuthTypeIam = "iam" |
const string | AuthTypeCp4d = "cp4d" |
const string | AuthTypeBearer = "bearerToken" |
Static Public Attributes inherited from IBM.Cloud.SDK.Core.Authentication.Authenticator | |
static string | PropNameAuthType = "AUTH_TYPE" |
Constants which define the names of external config propreties (credential file, environment variable, etc.). More... | |
static string | PropNameUsername = "USERNAME" |
static string | PropNamePassword = "PASSWORD" |
static string | PropNameBearerToken = "BEARER_TOKEN" |
static string | PropNameUrl = "AUTH_URL" |
static string | PropNameDisableSslVerification = "AUTH_DISABLE_SSL" |
static string | PropNameApikey = "APIKEY" |
static string | PropNameClientId = "CLIENT_ID" |
static string | PropNameClientSecret = "CLIENT_SECRET" |
static string | ErrorMessagePropMissing = "The {0} property is required but was not specified." |
static string | ErrorMessagePropInvalid = "The {0} property is invalid. Please remove any surrounding {{, }}, or \" characters." |
static string | ErrorMessageReqFailed = "Error while fetching access token from token service: " |
This class implements support for the IAM authentication mechanism.
|
inline |
Constructs an IamAuthenticator with all properties.
apikey | The apikey to be used when retrieving the access token |
url | The URL representing the token server endpoint |
clientId | The clientId to be used in token server interactions |
clientSecret | The clientSecret to be used in token server interactions |
disableSslVerification | A flag indicating whether SSL hostname verification should be disabled |
headers | A set of user-supplied headers to be included in token server interactions |
|
inline |
Construct an IamAuthenticator instance using properties retrieved from the specified Map.
config | A map containing the configuration properties |
|
inlinevirtual |
Perform the necessary authentication steps for the specified request.
Reimplemented from IBM.Cloud.SDK.Core.Authentication.Authenticator.
|
inlineprotected |
|
inlineprotected |
|
inlinevirtual |
Validates the current set of configuration information in the Authenticator.
Reimplemented from IBM.Cloud.SDK.Core.Authentication.Authenticator.
|
get |
|
get |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |
|
getset |