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

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


    /**
     * 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 )
View Full Code Here


    @Override
    public void onOkButtonPressed() {
        // TODO: validation

        final KeystoreEntry keystoreEntry = initialKeystoreEntry == null ? new KeystoreEntry() : initialKeystoreEntry;

        if ( keystoreURLTextField.getText().length() == 0 && keystoreTypeTextField.getText().length() == 0 && keystoreProviderTextField.getText().length() == 0 ) {
            // We want no keystore entry!
            if ( initialKeystoreEntry != null )
                policyEntryList.remove( initialKeystoreEntry );
        } else {
            keystoreEntry.setUrl     ( keystoreURLTextField     .getText() );
            keystoreEntry.setType    ( keystoreTypeTextField    .getText() );
            keystoreEntry.setProvider( keystoreProviderTextField.getText() );

            if ( initialKeystoreEntry == null ) { // If it is a new, we have to add it to the "global" list
                // We want to add it to be the first non-comment entry
                int index = 0;
                for ( ; index < policyEntryList.size(); index++ )
View Full Code Here

TOP

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

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.