- Timestamp:
- 04/09/12 15:21:57 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.3/security/ExpressoCertLogin/src/LoginApplet.java
r4124 r5898 176 176 case DigitalCertificate.KEYSTORE_DETECTED: 177 177 // 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); 182 187 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()+"://" + 184 193 this.getCodeBase().getHost() + ":" + this.getCodeBase().getPort() + 185 194 "/security/vercert.php")), dc.getPEMCertificate());
Note: See TracChangeset
for help on using the changeset viewer.