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

IceSSL.PasswordCallback Maven / Gradle / Ivy

Go to download

Ice is a comprehensive RPC framework that helps you build distributed applications with minimal effort using familiar object-oriented idioms

There is a newer version: 3.7.10
Show newest version
// **********************************************************************
//
// Copyright (c) 2003-2018 ZeroC, Inc. All rights reserved.
//
// This copy of Ice is licensed to you under the terms described in the
// ICE_LICENSE file included in this distribution.
//
// **********************************************************************

package IceSSL;

/**
 * A password callback is an alternate way to supply the plug-in with
 * passwords; this avoids using plain text configuration properties.
 **/
public interface PasswordCallback
{
    /**
     * Returns the password for the key. If an alias was selected
     * by setting the IceSSL.Alias property, alias
     * contains the property's value.
     *
     * @param alias The value of the property IceSSL.Alias, if that
     * property is set; null, otherwise.
     * @return The password for the key. The return value must not be null.
     *
     **/
    char[] getPassword(String alias);

    /**
     * Returns the password for validating the truststore.
     *
     * @return The password. To skip truststore validation,
     * return null.
     **/
    char[] getTruststorePassword();

    /**
     * Returns the password for validating the keystore.
     *
     * @return The password. To skip keystore validation,
     * return null.
     **/
    char[] getKeystorePassword();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy