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

com.hp.autonomy.frontend.configuration.passwords.PasswordsConfig Maven / Gradle / Ivy

The newest version!
/*
 * Copyright 2013-2015 Open Text.
 *
 * Licensed under the MIT License (the "License"); you may not use this file
 * except in compliance with the License.
 *
 * The only warranties for products and services of Open Text and its affiliates
 * and licensors ("Open Text") are as may be set forth in the express warranty
 * statements accompanying such products and services. Nothing herein should be
 * construed as constituting an additional warranty. Open Text shall not be
 * liable for technical or editorial errors or omissions contained herein. The
 * information contained herein is subject to change without notice.
 */

package com.hp.autonomy.frontend.configuration.passwords;

import org.jasypt.util.text.TextEncryptor;

/**
 * A Config which has some passwords which need encrypting and decrypting.
 *
 * @param  The type of the config.
 */
public interface PasswordsConfig {

    /**
     * @return A copy of this config with no passwords, or this if the config has no passwords
     */
    T withoutPasswords();

    /**
     * @param encryptor object responsible for password encryption
     * @return A copy of this config with passwords encrypted by the supplied {@link TextEncryptor},
     * or this if the config has no passwords
     */
    T withEncryptedPasswords(TextEncryptor encryptor);

    /**
     * @param encryptor object responsible for password encryption
     * @return A copy of this config with passwords decrypted by the supplied {@link TextEncryptor},
     * or this if the config has no passwords
     */
    T withDecryptedPasswords(TextEncryptor encryptor);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy