Ignore:
Timestamp:
04/09/12 15:21:57 (12 years ago)
Author:
rafaelraymundo
Message:

Ticket #2256 - Problemas com o token iKey 2032 / 4000.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.3/security/ExpressoCertLogin/src/LoginApplet.java

    r4124 r5898  
    176176                    case DigitalCertificate.KEYSTORE_DETECTED: 
    177177                        // Mostra PinNeedeDialog. 
    178                         String pin = DialogBuilder.showPinDialog((Frame) SwingUtilities.getAncestorOfClass(Frame.class, this), this.setup); 
    179                          
    180                         if (pin != null) { 
    181                             dc.openKeyStore(pin.toCharArray()); 
     178                        char[] pin = null; 
     179                        if (!DigitalCertificate.isUseMSCapi()){ 
     180                            String sPin = DialogBuilder.showPinDialog((Frame) SwingUtilities.getAncestorOfClass(Frame.class, this), this.setup); 
     181                            if (sPin != null) { 
     182                                pin = sPin.toCharArray(); 
     183                            } 
     184                        } 
     185                        if (DigitalCertificate.isUseMSCapi() || pin != null) { 
     186                            dc.openKeyStore(pin); 
    182187                            if (documentURL.getPath().matches(".*login.php$")){ 
    183                                 tryAgain = parseVercert(dc.getCredentials(pin, new URL(this.getCodeBase().getProtocol()+"://" + 
     188 
     189                                tryAgain = pin == null ? parseVercert(dc.getCredentials(null, new URL(this.getCodeBase().getProtocol()+"://" + 
     190                                    this.getCodeBase().getHost() + ":" + this.getCodeBase().getPort() + 
     191                                    "/security/vercert.php")), dc.getPEMCertificate()) : 
     192                                    parseVercert(dc.getCredentials(new String(pin), new URL(this.getCodeBase().getProtocol()+"://" + 
    184193                                    this.getCodeBase().getHost() + ":" + this.getCodeBase().getPort() + 
    185194                                    "/security/vercert.php")), dc.getPEMCertificate()); 
Note: See TracChangeset for help on using the changeset viewer.