Class KeyVaultCertificateWithPolicy
java.lang.Object
com.azure.security.keyvault.certificates.models.KeyVaultCertificate
com.azure.security.keyvault.certificates.models.KeyVaultCertificateWithPolicy
- All Implemented Interfaces:
com.azure.json.JsonSerializable<KeyVaultCertificate>
- Direct Known Subclasses:
DeletedCertificate
Represents a certificate with all of its properties including
CertificatePolicy.-
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads a JSON stream into aKeyVaultCertificateWithPolicy.Get the certificate policy of the certificatesetPolicy(CertificatePolicy certificatePolicy) Set the certificate policy of the certificatesetProperties(CertificateProperties properties) Set the certificate propertiescom.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class KeyVaultCertificate
getCer, getId, getKeyId, getName, getProperties, getSecretId, isCertificateOrderPreservedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
setProperties
Set the certificate properties- Overrides:
setPropertiesin classKeyVaultCertificate- Parameters:
properties- the certificate properties- Returns:
- the updated certificateWithPolicy object itself.
- Throws:
NullPointerException- ifcertificatePropertiesis null
-
getPolicy
Get the certificate policy of the certificate- Returns:
- the cer content.
-
setPolicy
Set the certificate policy of the certificate- Parameters:
certificatePolicy- the policy to set.- Returns:
- the certificateWithPolicy object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<KeyVaultCertificate>- Overrides:
toJsonin classKeyVaultCertificate- Throws:
IOException
-
fromJson
public static KeyVaultCertificateWithPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads a JSON stream into aKeyVaultCertificateWithPolicy.- Parameters:
jsonReader- TheJsonReaderbeing read.- Returns:
- The
KeyVaultCertificateWithPolicythat the JSON stream represented, may return null. - Throws:
IOException- If aKeyVaultCertificateWithPolicyfails to be read from thejsonReader.
-