public final class CertificatePolicy extends Object
certificate
.Constructor and Description |
---|
CertificatePolicy(String issuerName,
String subject)
Creates certificate policy.
|
CertificatePolicy(String issuerName,
String subject,
SubjectAlternativeNames subjectAlternativeNames)
Creates certificate policy.
|
CertificatePolicy(String issuerName,
SubjectAlternativeNames subjectAlternativeNames)
Creates certificate policy.
|
Modifier and Type | Method and Description |
---|---|
String |
getCertificateType()
Get the certificate type.
|
CertificateContentType |
getContentType()
Get the content type.
|
OffsetDateTime |
getCreatedOn()
Get the the UTC time at which certificate policy was created.
|
static CertificatePolicy |
getDefault()
Get the default certificate policy.
|
List<String> |
getEnhancedKeyUsage()
Get the enhanced key usage.
|
String |
getIssuerName()
Get the issuer name.
|
CertificateKeyCurveName |
getKeyCurveName()
Get the key curve.
|
Integer |
getKeySize()
Get the key size.
|
CertificateKeyType |
getKeyType()
Get the key type.
|
List<CertificateKeyUsage> |
getKeyUsage()
Get the key usage.
|
List<LifetimeAction> |
getLifetimeActions()
Get the lifetime actions
|
String |
getSubject()
Get the subject.
|
SubjectAlternativeNames |
getSubjectAlternativeNames()
Get the subjectAlternativeNames.
|
OffsetDateTime |
getUpdatedOn()
Get the UTC time at which certificate policy was last updated.
|
Integer |
getValidityInMonths()
Get the validity in months.
|
Boolean |
isCertificateTransparent()
Get the certificate transparency status.
|
Boolean |
isEnabled()
Get the enabled status.
|
Boolean |
isExportable()
Get the exportable.
|
Boolean |
isKeyReusable()
Get the key reuse status.
|
CertificatePolicy |
setCertificateTransparent(Boolean certificateTransparent)
Set the certificate transparency status.
|
CertificatePolicy |
setCertificateType(String certificateType)
Set the certificate type to request from the issuer.
|
CertificatePolicy |
setContentType(CertificateContentType contentType)
Set the content type.
|
CertificatePolicy |
setEnabled(Boolean enabled)
Set the enabled status.
|
CertificatePolicy |
setEnhancedKeyUsage(List<String> ekus)
Set the enhanced key usage.
|
CertificatePolicy |
setExportable(Boolean exportable)
Set the exportable value.
|
CertificatePolicy |
setKeyCurveName(CertificateKeyCurveName keyCurveName)
Set the key curve.
|
CertificatePolicy |
setKeyReusable(Boolean keyReusable)
Set the reuse key value.
|
CertificatePolicy |
setKeySize(Integer keySize)
Set the key size.
|
CertificatePolicy |
setKeyType(CertificateKeyType keyType)
Get the key type.
|
CertificatePolicy |
setKeyUsage(CertificateKeyUsage... keyUsage)
Set the key usage.
|
CertificatePolicy |
setLifetimeActions(LifetimeAction... actions)
Set the lifetime actions
|
CertificatePolicy |
setSubject(String subject)
Set the subject Name.
|
CertificatePolicy |
setSubjectAlternativeNames(SubjectAlternativeNames subjectAlternativeNames)
Set the subjectAlternativeNames.
|
CertificatePolicy |
setValidityInMonths(Integer validityInMonths)
Set the validity in months.
|
public CertificatePolicy(String issuerName, String subject)
issuerName
- The issuer name to set.subject
- The subject name to set.public CertificatePolicy(String issuerName, SubjectAlternativeNames subjectAlternativeNames)
issuerName
- The issuer name to set.subjectAlternativeNames
- The subject alternative names to set.public CertificatePolicy(String issuerName, String subject, SubjectAlternativeNames subjectAlternativeNames)
issuerName
- The issuer name to set.subject
- The subject name to set.subjectAlternativeNames
- The subject alternative names to set.public List<CertificateKeyUsage> getKeyUsage()
public CertificatePolicy setKeyUsage(CertificateKeyUsage... keyUsage)
keyUsage
- the key usage value to setpublic List<String> getEnhancedKeyUsage()
public CertificatePolicy setEnhancedKeyUsage(List<String> ekus)
ekus
- the ekus value to setpublic Boolean isExportable()
public CertificatePolicy setExportable(Boolean exportable)
exportable
- the exportable value to setpublic CertificateKeyType getKeyType()
public CertificatePolicy setKeyType(CertificateKeyType keyType)
keyType
- the key typepublic Integer getKeySize()
public Boolean isKeyReusable()
public CertificatePolicy setKeyReusable(Boolean keyReusable)
keyReusable
- the reuseKey value to setpublic CertificateKeyCurveName getKeyCurveName()
public OffsetDateTime getCreatedOn()
public OffsetDateTime getUpdatedOn()
public Boolean isEnabled()
public CertificatePolicy setEnabled(Boolean enabled)
enabled
- The enabled status to set.public CertificateContentType getContentType()
public CertificatePolicy setContentType(CertificateContentType contentType)
contentType
- the content type value to setpublic SubjectAlternativeNames getSubjectAlternativeNames()
public CertificatePolicy setSubjectAlternativeNames(SubjectAlternativeNames subjectAlternativeNames)
subjectAlternativeNames
- the subjectAlternativeNames to setpublic CertificatePolicy setSubject(String subject)
subject
- the subject Name to setpublic CertificatePolicy setValidityInMonths(Integer validityInMonths)
validityInMonths
- the validityInMonths value to setpublic CertificatePolicy setKeySize(Integer keySize)
keySize
- the key size value to setpublic CertificatePolicy setKeyCurveName(CertificateKeyCurveName keyCurveName)
keyCurveName
- the key curve value to setpublic CertificatePolicy setCertificateType(String certificateType)
certificateType
- the certificateType to request from issuer.public CertificatePolicy setCertificateTransparent(Boolean certificateTransparent)
certificateTransparent
- the certificateTransparency status to setpublic String getSubject()
public Integer getValidityInMonths()
public String getIssuerName()
public String getCertificateType()
public Boolean isCertificateTransparent()
public CertificatePolicy setLifetimeActions(LifetimeAction... actions)
actions
- the lifetime actions to set.public List<LifetimeAction> getLifetimeActions()
public static CertificatePolicy getDefault()
Copyright © 2021 Microsoft Corporation. All rights reserved.