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

com.azure.security.keyvault.certificates.implementation.IssuerPropertiesHelper Maven / Gradle / Ivy

The newest version!
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
package com.azure.security.keyvault.certificates.implementation;

import com.azure.security.keyvault.certificates.implementation.models.CertificateIssuerItem;
import com.azure.security.keyvault.certificates.models.IssuerProperties;

public final class IssuerPropertiesHelper {
    private static IssuerPropertiesAccessor accessor;

    public interface IssuerPropertiesAccessor {
        IssuerProperties createIssuerProperties(CertificateIssuerItem impl);
    }

    public static IssuerProperties createIssuerProperties(CertificateIssuerItem impl) {
        if (accessor == null) {
            new IssuerProperties();
        }

        assert accessor != null;
        return accessor.createIssuerProperties(impl);
    }

    public static void setAccessor(IssuerPropertiesAccessor accessor) {
        IssuerPropertiesHelper.accessor = accessor;
    }

    private IssuerPropertiesHelper() { }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy