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

com.swak.license.api.crypto.EncryptionChildBuilder Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (C) 2005 - 2019 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package com.swak.license.api.crypto;


import com.swak.license.api.builder.GenBuilder;
import com.swak.license.api.builder.GenChildBuilder;
import com.swak.license.api.passwd.PasswordProtection;

/**
 * A child builder for an encryption which injects a password based encryption into some parent builder.
 *
 * @param  the type of the parent builder.
 */
public interface EncryptionChildBuilder> extends GenChildBuilder {

    /**
     * Sets the name of the password based encryption algorithm (optional).
     * If this method is not called, then the name is inherited from the builder's context.
     *
     * @return {@code this}
     */
    EncryptionChildBuilder algorithm(String algorithm);

    /**
     * Sets the password protection which is used for generating a secret key for encryption/decryption.
     *
     * @return {@code this}
     */
    EncryptionChildBuilder protection(PasswordProtection protection);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy