Ignore:
Timestamp:
11/04/11 16:50:31 (12 years ago)
Author:
rafaelraymundo
Message:

Ticket #2165 - Erro ao enviar mensagens assinadas digitalmente.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/security/ExpressoCert/src/br/gov/serpro/setup/Setup.java

    r3394 r5152  
    4545        for (String[] parameter : getParameterInfo()) { 
    4646            String parameterName = parameter[0]; 
    47             String parameterValue; 
     47            String parameterValue = null; 
    4848 
    49             parameterValue = this.currentApplet.getParameter(parameterName); 
     49            if (this.currentApplet != null){ 
     50                parameterValue = this.currentApplet.getParameter(parameterName); 
     51            } 
    5052 
    5153            System.out.println("parameter: "+parameterName+" value: "+parameterValue); 
     
    7678        currentLocale = this.buildLocale(parameters.getProperty("locale")); 
    7779        langResources = new HashMap<String, ResourceBundle>(2); 
    78         langResources.put("ExpressoCertMessages", ResourceBundle.getBundle("ExpressoCertMessages", currentLocale)); 
     80        langResources.put("ExpressoCertMessages", ResourceBundle.getBundle("br.gov.serpro.i18n.ExpressoCertMessages", currentLocale)); 
    7981 
     82    } 
     83 
     84    public boolean setParameter(String parameter, String value){ 
     85 
     86        if (parameter != null && value != null){ 
     87 
     88            if (parameter.equals("debug") || parameter.equals("token") || parameter.equals("locale")){ 
     89                this.parameters.setProperty(parameter, value); 
     90                return true; 
     91            } 
     92        } 
     93 
     94        return false; 
    8095    } 
    8196 
Note: See TracChangeset for help on using the changeset viewer.