All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.venafi.vcert.sdk.policy.converter.PolicySpecificationConverter Maven / Gradle / Ivy

Go to download

VCert is a Java library, SDK, designed to simplify key generation and enrollment of machine identities (also known as SSL/TLS certificates and keys) that comply with enterprise security policy by using the Venafi Platform or Venafi Cloud.

There is a newer version: 0.9.3
Show newest version
package com.venafi.vcert.sdk.policy.converter;

import com.venafi.vcert.sdk.policy.domain.PolicySpecification;

public abstract class PolicySpecificationConverter {

    public T convertFromPolicySpecification(PolicySpecification policySpecification) throws Exception{
        getPolicySpecificationValidator().validate(policySpecification);
        return getFromPolicyConverter().convertFromPolicy(policySpecification);
    }

    public PolicySpecification convertToPolicySpecification(T t) throws Exception{
        return getToPolicyConverter().convertToPolicy(t);
    }

    protected abstract IPolicySpecificationValidator getPolicySpecificationValidator();
    protected abstract FromPolicyConverter getFromPolicyConverter();
    protected abstract ToPolicyConverter getToPolicyConverter();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy