Search in sources :

Example 6 with CertificateIssuingTemplate

use of com.venafi.vcert.sdk.connectors.cloud.domain.CertificateIssuingTemplate in project vcert-java by Venafi.

the class CloudPolicyToPolicyConverter method processPolicy.

private void processPolicy(PolicySpecification policySpecification, CloudPolicy cloudPolicy) throws Exception {
    CertificateIssuingTemplate cit = cloudPolicy.certificateIssuingTemplate();
    processDomainsAndWildcard(policySpecification, cit, cloudPolicy.removeRegexesFromSubjectCN());
    processMaxValidDays(policySpecification, cit);
    processCertificateAuthority(policySpecification, cloudPolicy.caInfo());
    processSubject(policySpecification, cloudPolicy);
    processKeyPair(policySpecification, cloudPolicy);
    processSubjectAltNames(policySpecification, cloudPolicy);
}
Also used : CertificateIssuingTemplate(com.venafi.vcert.sdk.connectors.cloud.domain.CertificateIssuingTemplate)

Aggregations

CertificateIssuingTemplate (com.venafi.vcert.sdk.connectors.cloud.domain.CertificateIssuingTemplate)6 VCertException (com.venafi.vcert.sdk.VCertException)1 CertificateRequest (com.venafi.vcert.sdk.certificate.CertificateRequest)1 ZoneConfiguration (com.venafi.vcert.sdk.connectors.ZoneConfiguration)1 Application (com.venafi.vcert.sdk.connectors.cloud.domain.Application)1 AllowedKeyType (com.venafi.vcert.sdk.connectors.cloud.domain.CertificateIssuingTemplate.AllowedKeyType)1 CloudZone (com.venafi.vcert.sdk.connectors.cloud.domain.CloudZone)1 Authentication (com.venafi.vcert.sdk.endpoint.Authentication)1 CloudPolicy (com.venafi.vcert.sdk.policy.api.domain.CloudPolicy)1 PolicySpecification (com.venafi.vcert.sdk.policy.domain.PolicySpecification)1 ArrayList (java.util.ArrayList)1 BouncyCastleProvider (org.bouncycastle.jce.provider.BouncyCastleProvider)1 Test (org.junit.jupiter.api.Test)1 ArgumentMatchers.anyString (org.mockito.ArgumentMatchers.anyString)1