Class V1CertificateSigningRequestStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1CertificateSigningRequestStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1CertificateSigningRequestStatus
extends Object
CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddConditionsItem
(V1CertificateSigningRequestCondition conditionsItem) certificate
(byte[] certificate) conditions
(List<V1CertificateSigningRequestCondition> conditions) boolean
Create an instance of V1CertificateSigningRequestStatus given an JSON stringbyte[]
certificate is populated with an issued certificate by the signer after an Approved condition is present.conditions applied to the request.int
hashCode()
void
setCertificate
(byte[] certificate) void
setConditions
(List<V1CertificateSigningRequestCondition> conditions) toJson()
Convert an instance of V1CertificateSigningRequestStatus to an JSON stringtoString()
static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_CERTIFICATE
- See Also:
-
SERIALIZED_NAME_CONDITIONS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1CertificateSigningRequestStatus
public V1CertificateSigningRequestStatus()
-
-
Method Details
-
certificate
-
getCertificate
@Nullable public byte[] getCertificate()certificate is populated with an issued certificate by the signer after an Approved condition is present. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty. Validation requirements: 1. certificate must contain one or more PEM blocks. 2. All PEM blocks must have the \"CERTIFICATE\" label, contain no headers, and the encoded data must be a BER-encoded ASN.1 Certificate structure as described in section 4 of RFC5280. 3. Non-PEM content may appear before or after the \"CERTIFICATE\" PEM blocks and is unvalidated, to allow for explanatory text as described in section 5.2 of RFC7468. If more than one PEM block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. The certificate is encoded in PEM format. When serialized as JSON or YAML, the data is additionally base64-encoded, so it consists of: base64( -----BEGIN CERTIFICATE----- ... -----END CERTIFICATE----- )- Returns:
- certificate
-
setCertificate
public void setCertificate(byte[] certificate) -
conditions
public V1CertificateSigningRequestStatus conditions(List<V1CertificateSigningRequestCondition> conditions) -
addConditionsItem
public V1CertificateSigningRequestStatus addConditionsItem(V1CertificateSigningRequestCondition conditionsItem) -
getConditions
conditions applied to the request. Known conditions are \"Approved\", \"Denied\", and \"Failed\".- Returns:
- conditions
-
setConditions
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1CertificateSigningRequestStatus
-
fromJson
Create an instance of V1CertificateSigningRequestStatus given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1CertificateSigningRequestStatus
- Throws:
IOException
- if the JSON string is invalid with respect to V1CertificateSigningRequestStatus
-
toJson
Convert an instance of V1CertificateSigningRequestStatus to an JSON string- Returns:
- JSON string
-