Google Cloud OsLogin Client - Class SshPublicKey (1.8.0)

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
NameDescription
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
TypeDescription
string

setKey

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getExpirationTimeUsec

An expiration time in microseconds since epoch.

Returns
TypeDescription
int|string

setExpirationTimeUsec

An expiration time in microseconds since epoch.

Parameter
NameDescription
var int|string
Returns
TypeDescription
$this

getFingerprint

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

Returns
TypeDescription
string

setFingerprint

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

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getName

Output only. The canonical resource name.

Returns
TypeDescription
string

setName

Output only. The canonical resource name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this