com.venafi.vcert.sdk.policy.converter.PolicySpecificationConverter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vcert-java Show documentation
Show all versions of vcert-java Show documentation
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.
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