com.microsoft.azure.keyvault.models.KeyProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-keyvault Show documentation
Show all versions of azure-keyvault Show documentation
This package contains Microsoft Azure Key Vault SDK.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.keyvault.models;
import com.fasterxml.jackson.annotation.JsonProperty;
/**
* Properties of the key pair backing a certificate.
*/
public class KeyProperties {
/**
* Indicates if the private key can be exported.
*/
@JsonProperty(value = "exportable")
private Boolean exportable;
/**
* The key type.
*/
@JsonProperty(value = "kty")
private String keyType;
/**
* The key size in bytes. For example; 1024 or 2048.
*/
@JsonProperty(value = "key_size")
private Integer keySize;
/**
* Indicates if the same key pair will be used on certificate renewal.
*/
@JsonProperty(value = "reuse_key")
private Boolean reuseKey;
/**
* Get the exportable value.
*
* @return the exportable value
*/
public Boolean exportable() {
return this.exportable;
}
/**
* Set the exportable value.
*
* @param exportable the exportable value to set
* @return the KeyProperties object itself.
*/
public KeyProperties withExportable(Boolean exportable) {
this.exportable = exportable;
return this;
}
/**
* Get the keyType value.
*
* @return the keyType value
*/
public String keyType() {
return this.keyType;
}
/**
* Set the keyType value.
*
* @param keyType the keyType value to set
* @return the KeyProperties object itself.
*/
public KeyProperties withKeyType(String keyType) {
this.keyType = keyType;
return this;
}
/**
* Get the keySize value.
*
* @return the keySize value
*/
public Integer keySize() {
return this.keySize;
}
/**
* Set the keySize value.
*
* @param keySize the keySize value to set
* @return the KeyProperties object itself.
*/
public KeyProperties withKeySize(Integer keySize) {
this.keySize = keySize;
return this;
}
/**
* Get the reuseKey value.
*
* @return the reuseKey value
*/
public Boolean reuseKey() {
return this.reuseKey;
}
/**
* Set the reuseKey value.
*
* @param reuseKey the reuseKey value to set
* @return the KeyProperties object itself.
*/
public KeyProperties withReuseKey(Boolean reuseKey) {
this.reuseKey = reuseKey;
return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy