Class V1alpha1ClusterTrustBundleSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1alpha1ClusterTrustBundleSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-10-04T19:37:38.574271Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1alpha1ClusterTrustBundleSpec
extends Object
ClusterTrustBundleSpec contains the signer and trust anchors.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Create an instance of V1alpha1ClusterTrustBundleSpec given an JSON stringsignerName indicates the associated signer, if any.trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates.int
hashCode()
void
setSignerName
(String signerName) void
setTrustBundle
(String trustBundle) signerName
(String signerName) toJson()
Convert an instance of V1alpha1ClusterTrustBundleSpec to an JSON stringtoString()
trustBundle
(String trustBundle) static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_SIGNER_NAME
- See Also:
-
SERIALIZED_NAME_TRUST_BUNDLE
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1alpha1ClusterTrustBundleSpec
public V1alpha1ClusterTrustBundleSpec()
-
-
Method Details
-
signerName
-
getSignerName
signerName indicates the associated signer, if any. In order to create or update a ClusterTrustBundle that sets signerName, you must have the following cluster-scoped permission: group=certificates.k8s.io resource=signers resourceName=<the signer name> verb=attest. If signerName is not empty, then the ClusterTrustBundle object must be named with the signer name as a prefix (translating slashes to colons). For example, for the signer name `example.com/foo`, valid ClusterTrustBundle object names include `example.com:foo:abc` and `example.com:foo:v1`. If signerName is empty, then the ClusterTrustBundle object's name must not have such a prefix. List/watch requests for ClusterTrustBundles can filter on this field using a `spec.signerName=NAME` field selector.- Returns:
- signerName
-
setSignerName
-
trustBundle
-
getTrustBundle
trustBundle contains the individual X.509 trust anchors for this bundle, as PEM bundle of PEM-wrapped, DER-formatted X.509 certificates. The data must consist only of PEM certificate blocks that parse as valid X.509 certificates. Each certificate must include a basic constraints extension with the CA bit set. The API server will reject objects that contain duplicate certificates, or that use PEM block headers. Users of ClusterTrustBundles, including Kubelet, are free to reorder and deduplicate certificate blocks in this file according to their own logic, as well as to drop PEM block headers and inter-block data.- Returns:
- trustBundle
-
setTrustBundle
-
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 V1alpha1ClusterTrustBundleSpec
-
fromJson
Create an instance of V1alpha1ClusterTrustBundleSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1alpha1ClusterTrustBundleSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1alpha1ClusterTrustBundleSpec
-
toJson
Convert an instance of V1alpha1ClusterTrustBundleSpec to an JSON string- Returns:
- JSON string
-