Reference documentation and code samples for the Google Certificate Authority Service V1 Client class X509Extension.
An [X509Extension][google.cloud.security.privateca.v1.X509Extension]
specifies an X.509 extension, which may be used in different parts of X.509
objects like certificates, CSRs, and CRLs.
Generated from protobuf message google.cloud.security.privateca.v1.X509Extension
Optional. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error).
Optional. Indicates whether or not this extension is critical (i.e., if the
client does not know how to handle this extension, the client should
consider this to be an error).
Returns
Type
Description
bool
setCritical
Optional. Indicates whether or not this extension is critical (i.e., if the
client does not know how to handle this extension, the client should
consider this to be an error).
[[["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-09-04 UTC."],[],[],null,["# Google Certificate Authority Service V1 Client - Class X509Extension (2.1.1)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.1 (latest)](/php/docs/reference/cloud-security-private-ca/latest/V1.X509Extension)\n- [2.1.0](/php/docs/reference/cloud-security-private-ca/2.1.0/V1.X509Extension)\n- [2.0.3](/php/docs/reference/cloud-security-private-ca/2.0.3/V1.X509Extension)\n- [1.7.3](/php/docs/reference/cloud-security-private-ca/1.7.3/V1.X509Extension)\n- [1.5.0](/php/docs/reference/cloud-security-private-ca/1.5.0/V1.X509Extension)\n- [1.4.2](/php/docs/reference/cloud-security-private-ca/1.4.2/V1.X509Extension)\n- [1.3.1](/php/docs/reference/cloud-security-private-ca/1.3.1/V1.X509Extension)\n- [1.2.2](/php/docs/reference/cloud-security-private-ca/1.2.2/V1.X509Extension)\n- [1.1.0](/php/docs/reference/cloud-security-private-ca/1.1.0/V1.X509Extension)\n- [1.0.3](/php/docs/reference/cloud-security-private-ca/1.0.3/V1.X509Extension) \nReference documentation and code samples for the Google Certificate Authority Service V1 Client class X509Extension.\n\nAn \\[X509Extension\\]\\[google.cloud.security.privateca.v1.X509Extension\\]\nspecifies an X.509 extension, which may be used in different parts of X.509\nobjects like certificates, CSRs, and CRLs.\n\nGenerated from protobuf message `google.cloud.security.privateca.v1.X509Extension`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Security \\\\ PrivateCA \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getObjectId\n\nRequired. The OID for this X.509 extension.\n\n### hasObjectId\n\n### clearObjectId\n\n### setObjectId\n\nRequired. The OID for this X.509 extension.\n\n### getCritical\n\nOptional. Indicates whether or not this extension is critical (i.e., if the\nclient does not know how to handle this extension, the client should\nconsider this to be an error).\n\n### setCritical\n\nOptional. Indicates whether or not this extension is critical (i.e., if the\nclient does not know how to handle this extension, the client should\nconsider this to be an error).\n\n### getValue\n\nRequired. The value of this X.509 extension.\n\n### setValue\n\nRequired. The value of this X.509 extension."]]