KeyAttributes Class
- java.
lang. Object - com.
azure. resourcemanager. keyvault. models. KeyAttributes
- com.
Implements
public final class KeyAttributes
implements JsonSerializable<KeyAttributes>
The object attributes managed by the Azure Key Vault service.
Constructor Summary
Constructor | Description |
---|---|
KeyAttributes() |
Creates an instance of Key |
Method Summary
Modifier and Type | Method and Description |
---|---|
Long |
created()
Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z. |
Boolean |
enabled()
Get the enabled property: Determines whether or not the object is enabled. |
Long |
expires()
Get the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z. |
Boolean |
exportable()
Get the exportable property: Indicates if the private key can be exported. |
static
Key |
fromJson(JsonReader jsonReader)
Reads an instance of Key |
Long |
notBefore()
Get the not |
Deletion |
recoveryLevel()
Get the recovery |
Json |
toJson(JsonWriter jsonWriter) |
Long |
updated()
Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z. |
void |
validate()
Validates the instance. |
Key |
withEnabled(Boolean enabled)
Set the enabled property: Determines whether or not the object is enabled. |
Key |
withExpires(Long expires)
Set the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z. |
Key |
withExportable(Boolean exportable)
Set the exportable property: Indicates if the private key can be exported. |
Key |
withNotBefore(Long notBefore)
Set the not |
Methods inherited from java.lang.Object
Constructor Details
KeyAttributes
public KeyAttributes()
Creates an instance of KeyAttributes class.
Method Details
created
public Long created()
Get the created property: Creation time in seconds since 1970-01-01T00:00:00Z.
Returns:
enabled
public Boolean enabled()
Get the enabled property: Determines whether or not the object is enabled.
Returns:
expires
public Long expires()
Get the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z.
Returns:
exportable
public Boolean exportable()
Get the exportable property: Indicates if the private key can be exported.
Returns:
fromJson
public static KeyAttributes fromJson(JsonReader jsonReader)
Reads an instance of KeyAttributes from the JsonReader.
Parameters:
Returns:
Throws:
notBefore
public Long notBefore()
Get the notBefore property: Not before date in seconds since 1970-01-01T00:00:00Z.
Returns:
recoveryLevel
public DeletionRecoveryLevel recoveryLevel()
Get the recoveryLevel property: The deletion recovery level currently in effect for the object. If it contains 'Purgeable', then the object can be permanently deleted by a privileged user; otherwise, only the system can purge the object at the end of the retention interval.
Returns:
toJson
updated
public Long updated()
Get the updated property: Last updated time in seconds since 1970-01-01T00:00:00Z.
Returns:
validate
public void validate()
Validates the instance.
withEnabled
public KeyAttributes withEnabled(Boolean enabled)
Set the enabled property: Determines whether or not the object is enabled.
Parameters:
Returns:
withExpires
public KeyAttributes withExpires(Long expires)
Set the expires property: Expiry date in seconds since 1970-01-01T00:00:00Z.
Parameters:
Returns:
withExportable
public KeyAttributes withExportable(Boolean exportable)
Set the exportable property: Indicates if the private key can be exported.
Parameters:
Returns:
withNotBefore
public KeyAttributes withNotBefore(Long notBefore)
Set the notBefore property: Not before date in seconds since 1970-01-01T00:00:00Z.
Parameters:
Returns:
Applies to
Azure SDK for Java