[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Google Cloud OsLogin Client - Class SshPublicKey (2.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.5 (latest)](/php/docs/reference/cloud-oslogin/latest/Common.SshPublicKey)\n- [2.0.4](/php/docs/reference/cloud-oslogin/2.0.4/Common.SshPublicKey)\n- [1.9.6](/php/docs/reference/cloud-oslogin/1.9.6/Common.SshPublicKey)\n- [1.8.0](/php/docs/reference/cloud-oslogin/1.8.0/Common.SshPublicKey)\n- [1.7.0](/php/docs/reference/cloud-oslogin/1.7.0/Common.SshPublicKey)\n- [1.6.0](/php/docs/reference/cloud-oslogin/1.6.0/Common.SshPublicKey)\n- [1.5.2](/php/docs/reference/cloud-oslogin/1.5.2/Common.SshPublicKey)\n- [1.4.6](/php/docs/reference/cloud-oslogin/1.4.6/Common.SshPublicKey) \nReference documentation and code samples for the Google Cloud OsLogin Client class SshPublicKey.\n\nThe SSH public key information associated with a Google account.\n\nGenerated from protobuf message `google.cloud.oslogin.common.SshPublicKey`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ OsLogin \\\\ Common\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getKey\n\nPublic key text in SSH format, defined by\n[RFC4253](https://www.ietf.org/rfc/rfc4253.txt)\nsection 6.6.\n\n### setKey\n\nPublic key text in SSH format, defined by\n[RFC4253](https://www.ietf.org/rfc/rfc4253.txt)\nsection 6.6.\n\n### getExpirationTimeUsec\n\nAn expiration time in microseconds since epoch.\n\n### setExpirationTimeUsec\n\nAn expiration time in microseconds since epoch.\n\n### getFingerprint\n\nOutput only. The SHA-256 fingerprint of the SSH public key.\n\n### setFingerprint\n\nOutput only. The SHA-256 fingerprint of the SSH public key.\n\n### getName\n\nOutput only. The canonical resource name.\n\n### setName\n\nOutput only. The canonical resource name."]]