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

com.microsoft.azure.management.network.ApplicationGatewaySslCertificate Maven / Gradle / Ivy

There is a newer version: 1.41.4
Show newest version
/**
 * Copyright (c) Microsoft Corporation. All rights reserved.
 * Licensed under the MIT License. See License.txt in the project root for
 * license information.
 */
package com.microsoft.azure.management.network;

import java.io.File;
import java.io.IOException;

import com.microsoft.azure.management.apigeneration.Fluent;
import com.microsoft.azure.management.network.implementation.ApplicationGatewaySslCertificateInner;
import com.microsoft.azure.management.resources.fluentcore.arm.models.ChildResource;
import com.microsoft.azure.management.resources.fluentcore.model.Attachable;
import com.microsoft.azure.management.resources.fluentcore.model.Settable;
import com.microsoft.azure.management.resources.fluentcore.model.HasInner;

/**
 * A client-side representation of an application gateway SSL certificate.
 */
@Fluent()
public interface ApplicationGatewaySslCertificate extends
    HasInner,
    ChildResource {

    /**
     * @return the public data of the certificate
     */
    String publicData();

    /**
     * Get Secret Id of (base-64 encoded unencrypted pfx) 'Secret' or 'Certificate'
     * object stored in KeyVault.
     * 
     * @return the secret id
     */
    String keyVaultSecretId();

    /**
     * Grouping of application gateway SSL certificate definition stages.
     */
    interface DefinitionStages {
        /**
         * The first stage of an application gateway SSL certificate.
         * @param  the parent application gateway type
         */
        interface Blank extends WithData {
        }

        /** The final stage of an application gateway SSL certificate definition.
         * 

* At this stage, any remaining optional settings can be specified, or the definition * can be attached to the parent application gateway definition. * @param the stage of the parent application gateway definition to return to after attaching */ interface WithAttach extends Attachable.InDefinition { } /** * The stage of an SSL certificate definition allowing to specify the contents of the SSL certificate. * @param the stage of the parent application gateway to return to after attaching */ interface WithData { /** * Specifies the contents of the private key in the PFX (PKCS#12) format, not base64-encoded. * @param pfxData the contents of the private key in the PFX format * @return the next stage of the definition */ WithPassword withPfxFromBytes(byte[] pfxData); /** * Specifies the PFX (PKCS#12) file to get the private key content from. * @param pfxFile a file in the PFX format * @return the next stage of the definition * @throws java.io.IOException when there are problems with the provided file */ WithPassword withPfxFromFile(File pfxFile) throws IOException; /** * Sepecifies the content of the private key using key vault. * @param keyVaultSecretId the secret id of key vault * @return the next stage of the definition */ WithAttach withKeyVaultSecretId(String keyVaultSecretId); } /** * The stage of an SSL certificate definition allowing to specify the password for the private key (PFX) content of the certificate. * @param the stage of the parent application gateway to return to after attaching */ interface WithPassword { /** * Specifies the password currently used to protect the provided PFX content of the SSL certificate. * @param password a password * @return the next stage of the definition */ WithAttach withPfxPassword(String password); } } /** The entirety of an application gateway SSL certificate definition. * @param the stage of the parent application gateway definition to return to after attaching */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithAttach, DefinitionStages.WithData, DefinitionStages.WithPassword { } /** * Grouping of application gateway SSL certificate update stages. */ interface UpdateStages { } /** * The entirety of an application gateway SSL certificate update as part of an application gateway update. */ interface Update extends Settable { } /** * Grouping of application gateway SSL certificate definition stages applicable as part of an application gateway update. */ interface UpdateDefinitionStages { /** * The first stage of an application gateway authentication certificate definition. * @param the stage of the parent application gateway definition to return to after attaching */ interface Blank extends WithData { } /** The final stage of an application gateway SSL certificate definition. *

* At this stage, any remaining optional settings can be specified, or the definition * can be attached to the parent application gateway definition. * @param the stage of the parent application gateway definition to return to after attaching */ interface WithAttach extends Attachable.InUpdate { } /** * The stage of an SSL certificate definition allowing to specify the contents of the SSL certificate. * @param the stage of the parent application gateway to return to after attaching */ interface WithData { /** * Specifies the contents of the private key in the PFX (PKCS#12) format, not base64-encoded. * @param pfxData the contents of the private key in the PFX format * @return the next stage of the definition */ WithPassword withPfxFromBytes(byte[] pfxData); /** * Specifies the PFX (PKCS#12) file to get the private key content from. * @param pfxFile a file in the PFX format * @return the next stage of the definition * @throws java.io.IOException when there are problems with the provided file */ WithPassword withPfxFromFile(File pfxFile) throws IOException; /** * Sepecifies the content of the private key using key vault. * @param keyVaultSecretId the secret id of key vault * @return the next stage of the definition */ WithAttach withKeyVaultSecretId(String keyVaultSecretId); } /** * The stage of an SSL certificate definition allowing to specify the password for the private key (PFX) content of the certificate. * @param the stage of the parent application gateway to return to after attaching */ interface WithPassword { /** * Specifies the password currently used to protect the provided PFX content of the SSL certificate. * @param password a password * @return the next stage of the definition */ WithAttach withPfxPassword(String password); } } /** The entirety of an application gateway SSL certificate definition as part of an application gateway update. * @param the stage of the parent application gateway definition to return to after attaching */ interface UpdateDefinition extends UpdateDefinitionStages.Blank, UpdateDefinitionStages.WithData, UpdateDefinitionStages.WithPassword, UpdateDefinitionStages.WithAttach { } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy