Enum google_api_proto::google::cloud::security::privateca::v1beta1::RevocationReason
source · #[repr(i32)]pub enum RevocationReason {
Unspecified = 0,
KeyCompromise = 1,
CertificateAuthorityCompromise = 2,
AffiliationChanged = 3,
Superseded = 4,
CessationOfOperation = 5,
CertificateHold = 6,
PrivilegeWithdrawn = 7,
AttributeAuthorityCompromise = 8,
}
Expand description
A [RevocationReason][google.cloud.security.privateca.v1beta1.RevocationReason] indicates whether a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] has been revoked, and the reason for revocation. These correspond to standard revocation reasons from RFC 5280. Note that the enum labels and values in this definition are not the same ASN.1 values defined in RFC 5280. These values will be translated to the correct ASN.1 values when a CRL is created.
Variants§
Unspecified = 0
Default unspecified value. This value does indicate that a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] has been revoked, but that a reason has not been recorded.
KeyCompromise = 1
Key material for this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] may have leaked.
CertificateAuthorityCompromise = 2
The key material for a certificate authority in the issuing path may have leaked.
AffiliationChanged = 3
The subject or other attributes in this [Certificate][google.cloud.security.privateca.v1beta1.Certificate] have changed.
Superseded = 4
This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] has been superseded.
CessationOfOperation = 5
This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] or entities in the issuing path have ceased to operate.
CertificateHold = 6
This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] should not be considered valid, it is expected that it may become valid in the future.
PrivilegeWithdrawn = 7
This [Certificate][google.cloud.security.privateca.v1beta1.Certificate] no longer has permission to assert the listed attributes.
AttributeAuthorityCompromise = 8
The authority which determines appropriate attributes for a [Certificate][google.cloud.security.privateca.v1beta1.Certificate] may have been compromised.
Implementations§
source§impl RevocationReason
impl RevocationReason
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for RevocationReason
impl Clone for RevocationReason
source§fn clone(&self) -> RevocationReason
fn clone(&self) -> RevocationReason
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RevocationReason
impl Debug for RevocationReason
source§impl Default for RevocationReason
impl Default for RevocationReason
source§fn default() -> RevocationReason
fn default() -> RevocationReason
source§impl From<RevocationReason> for i32
impl From<RevocationReason> for i32
source§fn from(value: RevocationReason) -> i32
fn from(value: RevocationReason) -> i32
source§impl Hash for RevocationReason
impl Hash for RevocationReason
source§impl Ord for RevocationReason
impl Ord for RevocationReason
source§fn cmp(&self, other: &RevocationReason) -> Ordering
fn cmp(&self, other: &RevocationReason) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for RevocationReason
impl PartialEq for RevocationReason
source§fn eq(&self, other: &RevocationReason) -> bool
fn eq(&self, other: &RevocationReason) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for RevocationReason
impl PartialOrd for RevocationReason
source§fn partial_cmp(&self, other: &RevocationReason) -> Option<Ordering>
fn partial_cmp(&self, other: &RevocationReason) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for RevocationReason
impl TryFrom<i32> for RevocationReason
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<RevocationReason, UnknownEnumValue>
fn try_from(value: i32) -> Result<RevocationReason, UnknownEnumValue>
impl Copy for RevocationReason
impl Eq for RevocationReason
impl StructuralPartialEq for RevocationReason
Auto Trait Implementations§
impl Freeze for RevocationReason
impl RefUnwindSafe for RevocationReason
impl Send for RevocationReason
impl Sync for RevocationReason
impl Unpin for RevocationReason
impl UnwindSafe for RevocationReason
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request