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.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.security.keyvault.certificates.models.KeyVaultCertificate
getCer, getId, getKeyId, getName, getProperties, getSecretId, isCertificateOrderPreserved
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
setProperties
Set the certificate properties- Overrides:
setProperties
in classKeyVaultCertificate
- Parameters:
properties
- the certificate properties- Returns:
- the updated certificateWithPolicy object itself.
- Throws:
NullPointerException
- ifcertificateProperties
is 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:
toJson
in interfacecom.azure.json.JsonSerializable<KeyVaultCertificate>
- Overrides:
toJson
in classKeyVaultCertificate
- Throws:
IOException
-
fromJson
public static KeyVaultCertificateWithPolicy fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads a JSON stream into aKeyVaultCertificateWithPolicy
.- Parameters:
jsonReader
- TheJsonReader
being read.- Returns:
- The
KeyVaultCertificateWithPolicy
that the JSON stream represented, may return null. - Throws:
IOException
- If aKeyVaultCertificateWithPolicy
fails to be read from thejsonReader
.
-