@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
__explicitlySet__. The hashCode() and equals(Object) methods are implemented to take
__explicitlySet__ into account. The constructor, on the other hand, does not set __explicitlySet__
(since the constructor cannot distinguish explicit null from unset null).
| Modifier and Type | Class and Description |
|---|---|
static class |
SecretExpiryRule.Builder |
SecretRule.RuleType| 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.
|
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Set<String> |
get__explicitlySet__() |
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() |
@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. No enforcement mechanism exists at this time, but audit logs
record the expiration on the appropriate date, according to the time interval specified in the rule.
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 SecretRulepublic boolean equals(Object o)
equals in class SecretRuleprotected boolean canEqual(Object other)
canEqual in class SecretRulepublic int hashCode()
hashCode in class SecretRuleCopyright © 2016–2021. All rights reserved.