Class CertificatePolicy
java.lang.Object
com.azure.security.keyvault.certificates.models.CertificatePolicy
The Certificate Management policy for the
certificate
.-
Constructor Summary
ConstructorDescriptionCertificatePolicy
(String issuerName, SubjectAlternativeNames subjectAlternativeNames) Creates certificate policy.CertificatePolicy
(String issuerName, String subject) Creates certificate policy.CertificatePolicy
(String issuerName, String subject, SubjectAlternativeNames subjectAlternativeNames) Creates certificate policy. -
Method Summary
Modifier and TypeMethodDescriptionGet the certificate type.Get the content type.Get the the UTC time at which certificate policy was created.static CertificatePolicy
Get the default certificate policy.Get the enhanced key usage.Get the issuer name.Get the key curve.Get the key size.Get the key type.Get the key usage.Get the lifetime actionsGet the subject.Get the subjectAlternativeNames.Get the UTC time at which certificate policy was last updated.Get the validity in months.Get the certificate transparency status.Get the enabled status.Get the exportable.Get the key reuse status.setCertificateTransparent
(Boolean certificateTransparent) Set the certificate transparency status.setCertificateType
(String certificateType) Set the certificate type to request from the issuer.setContentType
(CertificateContentType contentType) Set the content type.setEnabled
(Boolean enabled) Set the enabled status.setEnhancedKeyUsage
(List<String> ekus) Set the enhanced key usage.setExportable
(Boolean exportable) Set the exportable value.setKeyCurveName
(CertificateKeyCurveName keyCurveName) Set the key curve.setKeyReusable
(Boolean keyReusable) Set the reuse key value.setKeySize
(Integer keySize) Set the key size.setKeyType
(CertificateKeyType keyType) Get the key type.setKeyUsage
(CertificateKeyUsage... keyUsage) Set the key usage.setLifetimeActions
(LifetimeAction... actions) Set the lifetime actionssetSubject
(String subject) Set the subject Name.setSubjectAlternativeNames
(SubjectAlternativeNames subjectAlternativeNames) Set the subjectAlternativeNames.setValidityInMonths
(Integer validityInMonths) Set the validity in months.
-
Constructor Details
-
CertificatePolicy
Creates certificate policy.- Parameters:
issuerName
- The issuer name to set.subject
- The subject name to set.
-
CertificatePolicy
Creates certificate policy.- Parameters:
issuerName
- The issuer name to set.subjectAlternativeNames
- The subject alternative names to set.
-
CertificatePolicy
public CertificatePolicy(String issuerName, String subject, SubjectAlternativeNames subjectAlternativeNames) Creates certificate policy.- Parameters:
issuerName
- The issuer name to set.subject
- The subject name to set.subjectAlternativeNames
- The subject alternative names to set.
-
-
Method Details
-
getKeyUsage
Get the key usage.- Returns:
- the key usage
-
setKeyUsage
Set the key usage.- Parameters:
keyUsage
- the key usage value to set- Returns:
- the updated CertificatePolicy object itself.
-
getEnhancedKeyUsage
Get the enhanced key usage.- Returns:
- the enhanced key usage
-
setEnhancedKeyUsage
Set the enhanced key usage.- Parameters:
ekus
- the ekus value to set- Returns:
- the updated CertificatePolicy object itself.
-
isExportable
Get the exportable.- Returns:
- the exportable value
-
setExportable
Set the exportable value.- Parameters:
exportable
- the exportable value to set- Returns:
- the updated CertificatePolicy object itself.
-
getKeyType
Get the key type.- Returns:
- the key type value
-
setKeyType
Get the key type.- Parameters:
keyType
- the key type- Returns:
- the key type
-
getKeySize
Get the key size.- Returns:
- the key size
-
isKeyReusable
Get the key reuse status.- Returns:
- the key reuse status
-
setKeyReusable
Set the reuse key value.- Parameters:
keyReusable
- the reuseKey value to set- Returns:
- the updated CertificatePolicy object itself.
-
getKeyCurveName
Get the key curve.- Returns:
- the curve value
-
getCreatedOn
Get the the UTC time at which certificate policy was created.- Returns:
- the created UTC time.
-
getUpdatedOn
Get the UTC time at which certificate policy was last updated.- Returns:
- the last updated UTC time.
-
isEnabled
Get the enabled status.- Returns:
- the enabled status
-
setEnabled
Set the enabled status.- Parameters:
enabled
- The enabled status to set.- Returns:
- the updated CertificatePolicy object itself.
-
getContentType
Get the content type.- Returns:
- the content type
-
setContentType
Set the content type.- Parameters:
contentType
- the content type value to set- Returns:
- the updated CertificatePolicy object itself.
-
getSubjectAlternativeNames
Get the subjectAlternativeNames.- Returns:
- the subjectAlternativeNames.
-
setSubjectAlternativeNames
public CertificatePolicy setSubjectAlternativeNames(SubjectAlternativeNames subjectAlternativeNames) Set the subjectAlternativeNames.- Parameters:
subjectAlternativeNames
- the subjectAlternativeNames to set- Returns:
- the updated CertificatePolicy object itself.
-
setSubject
Set the subject Name.- Parameters:
subject
- the subject Name to set- Returns:
- the updated CertificatePolicy object itself.
-
setValidityInMonths
Set the validity in months.- Parameters:
validityInMonths
- the validityInMonths value to set- Returns:
- the updated CertificatePolicy object itself.
-
setKeySize
Set the key size.- Parameters:
keySize
- the key size value to set- Returns:
- the updated CertificatePolicy object itself.
-
setKeyCurveName
Set the key curve.- Parameters:
keyCurveName
- the key curve value to set- Returns:
- the updated CertificatePolicy object itself.
-
setCertificateType
Set the certificate type to request from the issuer.- Parameters:
certificateType
- the certificateType to request from issuer.- Returns:
- the updated CertificatePolicy object itself.
-
setCertificateTransparent
Set the certificate transparency status.- Parameters:
certificateTransparent
- the certificateTransparency status to set- Returns:
- the updated CertificatePolicy object itself.
-
getSubject
Get the subject.- Returns:
- the subject
-
getValidityInMonths
Get the validity in months.- Returns:
- the validity in months
-
getIssuerName
Get the issuer name.- Returns:
- the issuer name.
-
getCertificateType
Get the certificate type.- Returns:
- the certificate type
-
isCertificateTransparent
Get the certificate transparency status.- Returns:
- the certificate transparency status
-
setLifetimeActions
Set the lifetime actions- Parameters:
actions
- the lifetime actions to set.- Returns:
- the updated certificate policy object itself.
-
getLifetimeActions
Get the lifetime actions- Returns:
- the lifetime actions
-
getDefault
Get the default certificate policy.- Returns:
- the default certificate policy.
-