Package org.apache.harmony.tools.policytool.model

Examples of org.apache.harmony.tools.policytool.model.KeystorePasswordURLEntry


     * Shows the keystore entry edit dialog.<br>
     * This dialog handles both the keystore entry and the keystore password URL entries.
     */
    public void showKeystoreEntryEditDialog() {
        KeystoreEntry            keystoreEntry            = null;
        KeystorePasswordURLEntry keystorePasswordURLEntry = null;

        for ( final PolicyEntry policyEntry : policyEntryList ) {
            if ( keystoreEntry == null )
                if ( policyEntry instanceof KeystoreEntry )
                    keystoreEntry = (KeystoreEntry) policyEntry;
View Full Code Here


        if ( keystorePasswordURLTextField.getText().length() == 0 ) {
            // We want no keystore password URL entry!
            if ( initialKeystorePasswordURLEntry != null )
                policyEntryList.remove( initialKeystorePasswordURLEntry );
        } else {
            final KeystorePasswordURLEntry keystorePasswordURLEntry = initialKeystorePasswordURLEntry == null ? new KeystorePasswordURLEntry() : initialKeystorePasswordURLEntry;
            keystorePasswordURLEntry.setUrl( keystorePasswordURLTextField.getText() );

            if ( initialKeystorePasswordURLEntry == null ) { // If it is a new, we have to add it to the "global" list
                // We want to add it after the keystore entry
                int index = policyEntryList.indexOf( keystoreEntry );
                if ( index < 0 ) { // No such entry exists, we want it to be the first non-comment entry then
View Full Code Here

TOP

Related Classes of org.apache.harmony.tools.policytool.model.KeystorePasswordURLEntry

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.