CertificatePolicy Class
- java.
lang. Object - com.
azure. security. keyvault. certificates. models. CertificatePolicy
- com.
Implements
public final class CertificatePolicy
implements JsonSerializable<CertificatePolicy>
The Certificate Management policy for the KeyVaultCertificate.
Constructor Summary
Constructor | Description |
---|---|
CertificatePolicy(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
Methods inherited from java.lang.Object
Constructor Details
CertificatePolicy
public CertificatePolicy(String issuerName, SubjectAlternativeNames subjectAlternativeNames)
Creates certificate policy.
Parameters:
CertificatePolicy
public CertificatePolicy(String issuerName, String subject)
Creates certificate policy.
Parameters:
CertificatePolicy
public CertificatePolicy(String issuerName, String subject, SubjectAlternativeNames subjectAlternativeNames)
Creates certificate policy.
Parameters:
Method Details
fromJson
public static CertificatePolicy fromJson(JsonReader jsonReader)
Reads a JSON stream into a CertificatePolicy.
Parameters:
Returns:
Throws:
getCertificateType
public String getCertificateType()
Get the certificate type.
Returns:
getContentType
public CertificateContentType getContentType()
Get the content type.
Returns:
getCreatedOn
public OffsetDateTime getCreatedOn()
Get the the UTC time at which certificate policy was created.
Returns:
getDefault
public static CertificatePolicy getDefault()
Get the default certificate policy.
Returns:
getEnhancedKeyUsage
public List
Get the enhanced key usage.
Returns:
getIssuerName
public String getIssuerName()
Get the issuer name.
Returns:
getKeyCurveName
public CertificateKeyCurveName getKeyCurveName()
Get the key curve.
Returns:
getKeySize
public Integer getKeySize()
Get the key size.
Returns:
getKeyType
public CertificateKeyType getKeyType()
Get the key type.
Returns:
getKeyUsage
public List
Get the key usage.
Returns:
getLifetimeActions
public List
Get the lifetime actions
Returns:
getSubject
public String getSubject()
Get the subject.
Returns:
getSubjectAlternativeNames
public SubjectAlternativeNames getSubjectAlternativeNames()
Get the subjectAlternativeNames.
Returns:
getUpdatedOn
public OffsetDateTime getUpdatedOn()
Get the UTC time at which certificate policy was last updated.
Returns:
getValidityInMonths
public Integer getValidityInMonths()
Get the validity in months.
Returns:
isCertificateTransparent
public Boolean isCertificateTransparent()
Get the certificate transparency status.
Returns:
isEnabled
public Boolean isEnabled()
Get the enabled status.
Returns:
isExportable
public Boolean isExportable()
Get the exportable.
Returns:
isKeyReusable
public Boolean isKeyReusable()
Get the key reuse status.
Returns:
setCertificateTransparent
public CertificatePolicy setCertificateTransparent(Boolean certificateTransparent)
Set the certificate transparency status.
Parameters:
Returns:
setCertificateType
public CertificatePolicy setCertificateType(String certificateType)
Set the certificate type to request from the issuer.
Parameters:
Returns:
setContentType
public CertificatePolicy setContentType(CertificateContentType contentType)
Set the content type.
Parameters:
Returns:
setEnabled
public CertificatePolicy setEnabled(Boolean enabled)
Set the enabled status.
Parameters:
Returns:
setEnhancedKeyUsage
public CertificatePolicy setEnhancedKeyUsage(List
Set the enhanced key usage.
Parameters:
Returns:
setExportable
public CertificatePolicy setExportable(Boolean exportable)
Set the exportable value.
Parameters:
Returns:
setKeyCurveName
public CertificatePolicy setKeyCurveName(CertificateKeyCurveName keyCurveName)
Set the key curve.
Parameters:
Returns:
setKeyReusable
public CertificatePolicy setKeyReusable(Boolean keyReusable)
Set the reuse key value.
Parameters:
Returns:
setKeySize
public CertificatePolicy setKeySize(Integer keySize)
Set the key size.
Parameters:
Returns:
setKeyType
public CertificatePolicy setKeyType(CertificateKeyType keyType)
Get the key type.
Parameters:
Returns:
setKeyUsage
public CertificatePolicy setKeyUsage(CertificateKeyUsage[] keyUsage)
Set the key usage.
Parameters:
Returns:
setLifetimeActions
public CertificatePolicy setLifetimeActions(LifetimeAction[] actions)
Set the lifetime actions
Parameters:
Returns:
setSubject
public CertificatePolicy setSubject(String subject)
Set the subject Name.
Parameters:
Returns:
setSubjectAlternativeNames
public CertificatePolicy setSubjectAlternativeNames(SubjectAlternativeNames subjectAlternativeNames)
Set the subjectAlternativeNames.
Parameters:
Returns:
setValidityInMonths
public CertificatePolicy setValidityInMonths(Integer validityInMonths)
Set the validity in months.
Parameters:
Returns:
toJson
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for