Google Cloud OsLogin Client - Class SshPublicKey (1.9.5)

Reference documentation and code samples for the Google Cloud OsLogin Client class SshPublicKey.

The SSH public key information associated with a Google account.

Generated from protobuf message google.cloud.oslogin.common.SshPublicKey

Namespace

Google \ Cloud \ OsLogin \ Common

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ key string

Public key text in SSH format, defined by RFC4253 section 6.6.

↳ expiration_time_usec int|string

An expiration time in microseconds since epoch.

↳ fingerprint string

Output only. The SHA-256 fingerprint of the SSH public key.

↳ name string

Output only. The canonical resource name.

getKey

Public key text in SSH format, defined by RFC4253 section 6.6.

Returns
Type Description
string

setKey

Public key text in SSH format, defined by RFC4253 section 6.6.

Parameter
Name Description
var string
Returns
Type Description
$this

getExpirationTimeUsec

An expiration time in microseconds since epoch.

Returns
Type Description
int|string

setExpirationTimeUsec

An expiration time in microseconds since epoch.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getFingerprint

Output only. The SHA-256 fingerprint of the SSH public key.

Returns
Type Description
string

setFingerprint

Output only. The SHA-256 fingerprint of the SSH public key.

Parameter
Name Description
var string
Returns
Type Description
$this

getName

Output only. The canonical resource name.

Returns
Type Description
string

setName

Output only. The canonical resource name.

Parameter
Name Description
var string
Returns
Type Description
$this