public final class KeyRotationPolicy extends KeyRotationPolicyProperties
expiryTime, keyRotationLifetimeActions
Constructor and Description |
---|
KeyRotationPolicy(String id,
OffsetDateTime createdOn,
OffsetDateTime updatedOn)
Creates an instance of
KeyRotationPolicy . |
Modifier and Type | Method and Description |
---|---|
OffsetDateTime |
getCreatedOn()
Get the
policy's created time in UTC. |
String |
getId()
Get the identifier of the
policy . |
OffsetDateTime |
getUpdatedOn()
Get the
policy's last updated time in UTC. |
KeyRotationPolicy |
setExpiryTime(String expiryTime)
Set the optional key expiration period used to define the duration after which a newly rotated key will expire.
|
KeyRotationPolicy |
setLifetimeActions(List<KeyRotationLifetimeAction> keyRotationLifetimeActions)
Set the actions that will be performed by Key Vault over the lifetime of a key.
|
getExpiryTime, getLifetimeActions
public KeyRotationPolicy(String id, OffsetDateTime createdOn, OffsetDateTime updatedOn)
KeyRotationPolicy
.public OffsetDateTime getCreatedOn()
policy's
created time in UTC.public OffsetDateTime getUpdatedOn()
policy's
last updated time in UTC.
May be undefined if a policy
has not been explicitly set.
policy's
last updated time in UTC.public KeyRotationPolicy setExpiryTime(String expiryTime)
setExpiryTime
in class KeyRotationPolicyProperties
expiryTime
- The expiry time to set in ISO 8601 format.KeyRotationPolicy
object.public KeyRotationPolicy setLifetimeActions(List<KeyRotationLifetimeAction> keyRotationLifetimeActions)
You may also pass an empty array to restore to its default values.
setLifetimeActions
in class KeyRotationPolicyProperties
keyRotationLifetimeActions
- The actions
to set.KeyRotationPolicy
object.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.