private void saveAliasInformation(List<Map<String, Object>> keyEntryElements) {
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.entry(tc, "saveAliasInformation");
        }

        for (Map<String, Object> keyEntry : keyEntryElements) {
            String alias = (String) keyEntry.get(KEY_STORE_KEYENTRY_NAME);

            SerializableProtectedString certPassword;
            Object o = keyEntry.get(KEY_STORE_KEYENTRY_PASSWORD);
            if (o != null) {
                if (o instanceof SerializableProtectedString) {
                    certPassword = (SerializableProtectedString) o;
                } else {
                    // Vanishingly small chance this isn't a string. Take the CCE if it happens as evidence if it does
                    certPassword = new SerializableProtectedString(((String) o).toCharArray());
                }
            } else {
                // no password entry so don't bother to save the information
                if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                    Tr.debug(tc, "There is no password for certificate " + alias + " do not save it.");
                }
                continue;
            }

            if (alias != null) {
                if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled()) {
                    Tr.debug(tc, "Adding " + alias + " to key pwd map.");
                }
                certAliasInfo.put(alias, certPassword);
            }

        }
        if (TraceComponent.isAnyTracingEnabled() && tc.isEntryEnabled()) {
            Tr.exit(tc, "saveAliasInformation");
        }
        return;
    }
private void saveAliasInformation ( List < Map < String , Object > > keyEntryElements ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . entry ( tc , "saveAliasInformation" ) ; } for ( Map < String , Object > keyEntry : keyEntryElements ) { String alias = ( String ) keyEntry . get ( KEY_STORE_KEYENTRY_NAME ) ; SerializableProtectedString certPassword ; Object o = keyEntry . get ( KEY_STORE_KEYENTRY_PASSWORD ) ; if ( o != null ) { if ( o instanceof SerializableProtectedString ) { certPassword = ( SerializableProtectedString ) o ; } else { certPassword = new SerializableProtectedString ( ( ( String ) o ) . toCharArray ( ) ) ; } } else { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "There is no password for certificate " + alias + " do not save it." ) ; } continue ; } if ( alias != null ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isDebugEnabled ( ) ) { Tr . debug ( tc , "Adding " + alias + " to key pwd map." ) ; } certAliasInfo . put ( alias , certPassword ) ; } } if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEntryEnabled ( ) ) { Tr . exit ( tc , "saveAliasInformation" ) ; } return ; }
@param keyEntryElements