Class KeyVaultCertificateIdentifier
java.lang.Object
com.azure.security.keyvault.certificates.models.KeyVaultCertificateIdentifier
Information about a
KeyVaultCertificate parsed from the certificate URL. You can use this information when
calling methods of CertificateClient or CertificateAsyncClient.-
Constructor Summary
ConstructorsConstructorDescriptionKeyVaultCertificateIdentifier(String sourceId) Create a newKeyVaultCertificateIdentifierfrom a given Key Vault identifier. -
Method Summary
Modifier and TypeMethodDescriptiongetName()Gets the name of the certificate.Gets the key identifier used to create this objectGets the URL of the Key Vault.Gets the optional version of the certificate.
-
Constructor Details
-
KeyVaultCertificateIdentifier
Create a newKeyVaultCertificateIdentifierfrom a given Key Vault identifier.Some examples:
- https://{key-vault-name}.vault.azure.net/certificates/{certificate-name}
- https://{key-vault-name}.vault.azure.net/certificates/{certificate-name}/pending
- https://{key-vault-name}.vault.azure.net/certificates/{certificate-name}/{unique-version-id}
- https://{key-vault-name}.vault.azure.net/deletedcertificates/{deleted-certificate-name}
- Parameters:
sourceId- The identifier to extract information from.- Throws:
IllegalArgumentException- IfsourceIdis an invalid Key Vault Certificate identifier.NullPointerException- IfsourceIdisnull.
-
-
Method Details
-
getSourceId
Gets the key identifier used to create this object- Returns:
- The certificate identifier.
-
getVaultUrl
-
getName
-
getVersion
Gets the optional version of the certificate.- Returns:
- The certificate version.
-