Google Cloud Chronicle V1 Client - Class OAuthPasswordGrantCredentials (0.7.1)

Reference documentation and code samples for the Google Cloud Chronicle V1 Client class OAuthPasswordGrantCredentials.

OAuth 2.0 password grant. See https://tools.ietf.org/html/rfc6749.

Generated from protobuf message google.cloud.chronicle.v1.OAuthPasswordGrantCredentials

Namespace

Google \ Cloud \ Chronicle \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ token_endpoint string

Token endpoint to get the OAuth token from.

↳ client_id string

Client ID.

↳ client_secret string

Client secret.

↳ user string

Username.

↳ password string

Password.

getTokenEndpoint

Token endpoint to get the OAuth token from.

Returns
Type Description
string

setTokenEndpoint

Token endpoint to get the OAuth token from.

Parameter
Name Description
var string
Returns
Type Description
$this

getClientId

Client ID.

Returns
Type Description
string

setClientId

Client ID.

Parameter
Name Description
var string
Returns
Type Description
$this

getClientSecret

Client secret.

Returns
Type Description
string

setClientSecret

Client secret.

Parameter
Name Description
var string
Returns
Type Description
$this

getUser

Username.

Returns
Type Description
string

setUser

Username.

Parameter
Name Description
var string
Returns
Type Description
$this

getPassword

Password.

Returns
Type Description
string

setPassword

Password.

Parameter
Name Description
var string
Returns
Type Description
$this