Class CertificateSigningRequestStatus
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.certificates.v1.CertificateSigningRequestStatus
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class CertificateSigningRequestStatus extends java.lang.Object implements com.marcnuri.yakc.model.Model
CertificateSigningRequestStatus contains conditions used to indicate approved/denied/failed status of the request, and the issued certificate.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CertificateSigningRequestStatus.Builder
-
Constructor Summary
Constructors Constructor Description CertificateSigningRequestStatus()
CertificateSigningRequestStatus(java.lang.String certificate, java.util.List<CertificateSigningRequestCondition> conditions)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CertificateSigningRequestStatus.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getCertificate()
certificate is populated with an issued certificate by the signer after an Approved condition is present.java.util.List<CertificateSigningRequestCondition>
getConditions()
conditions applied to the request.int
hashCode()
void
setCertificate(java.lang.String certificate)
certificate is populated with an issued certificate by the signer after an Approved condition is present.void
setConditions(java.util.List<CertificateSigningRequestCondition> conditions)
conditions applied to the request.CertificateSigningRequestStatus.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CertificateSigningRequestStatus
public CertificateSigningRequestStatus(java.lang.String certificate, java.util.List<CertificateSigningRequestCondition> conditions)
-
CertificateSigningRequestStatus
public CertificateSigningRequestStatus()
-
-
Method Detail
-
builder
public static CertificateSigningRequestStatus.Builder builder()
-
toBuilder
public CertificateSigningRequestStatus.Builder toBuilder()
-
getCertificate
public java.lang.String 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-----
)
-
getConditions
public java.util.List<CertificateSigningRequestCondition> getConditions()
conditions applied to the request. Known conditions are "Approved", "Denied", and "Failed".
-
setCertificate
public void setCertificate(java.lang.String certificate)
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-----
)
-
setConditions
public void setConditions(java.util.List<CertificateSigningRequestCondition> conditions)
conditions applied to the request. Known conditions are "Approved", "Denied", and "Failed".
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-