You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * The contact information for the vault certificates. */publicclassContact {
/** * Email addresss. */@JsonProperty(value = "email")
privateStringemailAddress;
/** * Name. */@JsonProperty(value = "name")
privateStringname;
/** * Phone number. */@JsonProperty(value = "phone")
privateStringphone;
}
publicclassIssuerBase {
/** * Identifier for the issuer object. */@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
privateStringid;
/** * The issuer provider. */@JsonProperty(value = "provider")
privateStringprovider;
/** * Determines whether the issuer is enabled. */@JsonProperty(value = "enabled")
privateBooleanenabled;
/** * Creation time in UTC. */@JsonProperty(value = "created", access = JsonProperty.Access.WRITE_ONLY)
privateLongcreated;
/** * Last updated time in UTC. */@JsonProperty(value = "updated", access = JsonProperty.Access.WRITE_ONLY)
privateLongupdated;
Stringname;
}
publicclassIssuerextendsIssuerBase {
/** * The user name/account name/account id. */@JsonProperty(value = "account_id")
privateStringaccountId;
/** * The password/secret/account key. */@JsonProperty(value = "pwd")
privateStringpassword;
/** * Id of the organization. */@JsonProperty(value = "id")
privateStringid;
/** * Details of the organization administrator. */@JsonProperty(value = "admin_details")
privateList<AdministratorDetails> adminDetails;
publicIssuer()
}
publicclassCertificateBase {
/** * Determines whether the object is enabled. */privateBooleanenabled;
/** * Not before date in UTC. */privateOffsetDateTimenotBefore;
/** * The secret version. */Stringversion;
/** * Expiry date in UTC. */privateOffsetDateTimeexpires;
/** * Creation time in UTC. */privateOffsetDateTimecreated;
/** * Last updated time in UTC. */privateOffsetDateTimeupdated;
/** * Reflects the deletion recovery level currently in effect for certificates in * the current vault. If it contains 'Purgeable', the certificate can be * permanently deleted by a privileged user; otherwise, only the system can * purge the certificate, at the end of the retention interval. Possible values * include: 'Purgeable', 'Recoverable+Purgeable', 'Recoverable', * 'Recoverable+ProtectedSubscription'. */privateStringrecoveryLevel;
/** * The Certificate name. */Stringname;
/** * The certificate id. */@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
privateStringid;
/** * The key id. */@JsonProperty(value = "kid", access = JsonProperty.Access.WRITE_ONLY)
privateStringkeyId;
/** * Thumbprint of the certificate. */@JsonProperty(value = "x5t", access = JsonProperty.Access.WRITE_ONLY)
privateBase64Urlx509Thumbprint;
/** * Type of the certificate. */@JsonProperty(value = "contentType")
privateStringcontentType;
/** * Application specific metadata in the form of key-value pairs. */@JsonProperty(value = "tags")
privateMap<String, String> tags;
/** * True if the certificate's lifetime is managed by key vault. If this is a key * backing a certificate, then managed will be true. */@JsonProperty(value = "managed", access = JsonProperty.Access.WRITE_ONLY)
privateBooleanmanaged;
/** * Properties of the secret backing a certificate. */@JsonProperty(value = "secret_props")
privateStringsecretContentType;
/** * The subject name. Should be a valid X509 distinguished Name. */@JsonProperty(value = "subject")
privateStringcertificateSubjectName;
/** * The enhanced key usage. */@JsonProperty(value = "ekus")
privateList<String> enhancedKeyUsage;
/** * The subject alternative names. */@JsonProperty(value = "sans")
privateSubjectAlternativeNamessubjectAlternativeNames;
/** * List of key usages. */@JsonProperty(value = "key_usage")
privateList<KeyUsageType> keyUsage;
/** * The duration that the ceritifcate is valid in months. */@JsonProperty(value = "validity_months")
privateIntegervalidityInMonths;
/** * Indicates if the private key can be exported. */@JsonProperty(value = "exportable")
privateBooleanexportable;
/** * The type of key pair to be used for the certificate. Possible values * include: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM', 'oct'. */@JsonProperty(value = "kty")
privateJsonWebKeyTypekeyType;
/** * The key size in bits. For example: 2048, 3072, or 4096 for RSA. */@JsonProperty(value = "key_size")
privateIntegerkeySize;
/** * Indicates if the same key pair will be used on certificate renewal. */@JsonProperty(value = "reuse_key")
privateBooleanreuseKey;
/** * Elliptic curve name. For valid values, see JsonWebKeyCurveName. Possible * values include: 'P-256', 'P-384', 'P-521', 'P-256K'. */@JsonProperty(value = "crv")
privateJsonWebKeyCurveNamekeyCurve;
/** * Actions that will be performed by Key Vault over the lifetime of a * certificate. */@JsonProperty(value = "lifetime_actions")
privateList<LifetimeAction> lifetimeActions;
/** * Name of the referenced issuer object or reserved names; for example, * 'Self' or 'Unknown'. */@JsonProperty(value = "name")
privateStringissuerName;
/** * Type of certificate to be requested from the issuer provider. */@JsonProperty(value = "cty")
privateStringissuerCertificateType;
/** * Indicates if the certificates generated under this policy should be * published to certificate transparency logs. */@JsonProperty(value = "cert_transparency")
privateBooleanissuerCertificateTransparency;
}
publicclassCertificateextendsCertificateBase {
/** * CER contents of x509 certificate. */@JsonProperty(value = "cer")
privatebyte[] cer;
/** * The secret id. */@JsonProperty(value = "sid", access = JsonProperty.Access.WRITE_ONLY)
privateStringsid;
publicCertificate(Stringname){
super.name = name;
}
}
publicclassCertificateImportextendsCertificateBase {
/** * Base64 encoded representation of the certificate object to import. This * certificate needs to contain the private key. */@JsonProperty(value = "value", required = true)
privateStringbase64EncodedCertificate;
/** * If the private key in base64EncodedCertificate is encrypted, the * password used for encryption. */@JsonProperty(value = "pwd")
privateStringpassword;
publicCertificateImport(Stringname){
super.name = name;
}
}
/** * Management policy for a certificate. */publicclassCertificatePolicy {
/** * The certificate id. */@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
privateStringid;
/** * The type of key pair to be used for the certificate. Possible values * include: 'EC', 'EC-HSM', 'RSA', 'RSA-HSM', 'oct'. */@JsonProperty(value = "kty")
privateJsonWebKeyTypekeyType;
/** * The key size in bits. For example: 2048, 3072, or 4096 for RSA. */@JsonProperty(value = "key_size")
privateIntegerkeySize;
/** * Indicates if the same key pair will be used on certificate renewal. */@JsonProperty(value = "reuse_key")
privateBooleanreuseKey;
/** * Elliptic curve name. For valid values, see JsonWebKeyCurveName. Possible * values include: 'P-256', 'P-384', 'P-521', 'P-256K'. */@JsonProperty(value = "crv")
privateJsonWebKeyCurveNamekeyCurve;
/** * Properties of the secret backing a certificate. */@JsonProperty(value = "secret_props")
privateStringsecretContentType;
/** * The subject name. Should be a valid X509 distinguished Name. */@JsonProperty(value = "subject")
privateStringsubject;
/** * The enhanced key usage. */@JsonProperty(value = "ekus")
privateList<String> ekus;
/** * The subject alternative names. */@JsonProperty(value = "sans")
privateSubjectAlternativeNamessubjectAlternativeNames;
/** * List of key usages. */@JsonProperty(value = "key_usage")
privateList<KeyUsageType> keyUsage;
/** * The duration that the ceritifcate is valid in months. */@JsonProperty(value = "validity_months")
privateIntegervalidityInMonths;
/** * Actions that will be performed by Key Vault over the lifetime of a * certificate. */@JsonProperty(value = "lifetime_actions")
privateList<LifetimeAction> lifetimeActions;
/** * Name of the referenced issuer object or reserved names; for example, * 'Self' or 'Unknown'. */@JsonProperty(value = "name")
privateStringissuerName;
/** * Type of certificate to be requested from the issuer provider. */@JsonProperty(value = "cty")
privateStringcertificateType;
/** * Indicates if the certificates generated under this policy should be * published to certificate transparency logs. */@JsonProperty(value = "cert_transparency")
privateBooleancertificateTransparency;
/** * Get the id value. * * @return the id value */publicStringid() {
returnthis.id;
}
}
publicclassCertificateOperation {
/** * The certificate id. */@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
privateStringid;
/** * Parameters for the issuer of the X509 component of a certificate. */@JsonProperty(value = "issuer")
privateIssuerParametersissuerParameters;
/** * The certificate signing request (CSR) that is being used in the * certificate operation. */@JsonProperty(value = "csr")
privatebyte[] csr;
/** * Indicates if cancellation was requested on the certificate operation. */@JsonProperty(value = "cancellation_requested")
privateBooleancancellationRequested;
/** * Status of the certificate operation. */@JsonProperty(value = "status")
privateStringstatus;
/** * The status details of the certificate operation. */@JsonProperty(value = "status_details")
privateStringstatusDetails;
/** * Error encountered, if any, during the certificate operation. */@JsonProperty(value = "error")
privateErrorerror;
/** * Location which contains the result of the certificate operation. */@JsonProperty(value = "target")
privateStringtarget;
/** * Identifier for the certificate operation. */@JsonProperty(value = "request_id")
privateStringrequestId;
}