@Generated(value="OracleSDKGenerator", comments="API Version: 20180608") public final class SecretExpiryRule extends SecretRule
A rule that helps enforce the expiration of a secret’s contents.
Note: Objects should always be created or deserialized using the SecretExpiryRule.Builder
. This model
distinguishes fields that are null
because they are unset from fields that are explicitly
set to null
. This is done in the setter methods of the SecretExpiryRule.Builder
, which maintain a
set of all explicitly set fields called SecretExpiryRule.Builder.__explicitlySet__
. The hashCode()
and equals(Object)
methods are implemented to take the explicitly set
fields into account. The constructor, on the other hand, does not take the explicitly set fields
into account (since the constructor cannot distinguish explicit null
from unset null
).
Modifier and Type | Class and Description |
---|---|
static class |
SecretExpiryRule.Builder |
SecretRule.RuleType
EXPLICITLY_SET_FILTER_NAME, EXPLICITLY_SET_PROPERTY_NAME
Constructor and Description |
---|
SecretExpiryRule(String secretVersionExpiryInterval,
Date timeOfAbsoluteExpiry,
Boolean isSecretContentRetrievalBlockedOnExpiry)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static SecretExpiryRule.Builder |
builder()
Create a new builder.
|
boolean |
equals(Object o) |
Boolean |
getIsSecretContentRetrievalBlockedOnExpiry()
A property indicating whether to block retrieval of the secret content, on expiry.
|
String |
getSecretVersionExpiryInterval()
A property indicating how long the secret contents will be considered valid, expressed in
ISO 8601 format.
|
Date |
getTimeOfAbsoluteExpiry()
An optional property indicating the absolute time when this secret will expire, expressed in
RFC 3339 timestamp format.
|
int |
hashCode() |
SecretExpiryRule.Builder |
toBuilder() |
String |
toString() |
String |
toString(boolean includeByteArrayContents)
Return a string representation of the object.
|
markPropertyAsExplicitlySet, wasPropertyExplicitlySet
@Deprecated public SecretExpiryRule(String secretVersionExpiryInterval, Date timeOfAbsoluteExpiry, Boolean isSecretContentRetrievalBlockedOnExpiry)
public static SecretExpiryRule.Builder builder()
Create a new builder.
public SecretExpiryRule.Builder toBuilder()
public String getSecretVersionExpiryInterval()
A property indicating how long the secret contents will be considered valid, expressed in
ISO 8601 format. The secret needs to
be updated when the secret content expires. The timer resets after you update the secret
contents. The minimum value is 1 day and the maximum value is 90 days for this property.
Currently, only intervals expressed in days are supported. For example, pass P3D
to
have the secret version expire every 3 days.
public Date getTimeOfAbsoluteExpiry()
An optional property indicating the absolute time when this secret will expire, expressed in
RFC 3339 timestamp format. The minimum number of days
from current time is 1 day and the maximum number of days from current time is 365 days.
Example: 2019-04-03T21:10:29.600Z
public Boolean getIsSecretContentRetrievalBlockedOnExpiry()
A property indicating whether to block retrieval of the secret content, on expiry. The default is false. If the secret has already expired and you would like to retrieve the secret contents, you need to edit the secret rule to disable this property, to allow reading the secret content.
public String toString()
toString
in class SecretRule
public String toString(boolean includeByteArrayContents)
Return a string representation of the object.
toString
in class SecretRule
includeByteArrayContents
- true to include the full contents of byte arrayspublic boolean equals(Object o)
equals
in class SecretRule
public int hashCode()
hashCode
in class SecretRule
Copyright © 2016–2024. All rights reserved.