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

com.microsoft.azure.keyvault.cryptography.Algorithm Maven / Gradle / Ivy

There is a newer version: 1.2.6
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

package com.microsoft.azure.keyvault.cryptography;

/**
 * Abstract base class for all Algorithm objects.
 *
 */
public abstract class Algorithm {

    private final String name;

    /**
     * Constructor.
     * 
     * @param name The name of the algorithm.
     */
    protected Algorithm(String name) {
        if (Strings.isNullOrWhiteSpace(name)) {
            throw new IllegalArgumentException("name");
        }

        this.name = name;
    }

    /**
     * Gets the name of the algorithm.
     * 
     * @return The name of the algorithm.
     */
    public String getName() {
        return name;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy