Last change
on this file since c14b8d2 was
288126d,
checked in by Jose Ruiz <joseruiz@…>, 11 years ago
|
Manejo de repositorio de certificados y firma con pkcs7
|
-
Property mode set to
100644
|
File size:
897 bytes
|
Rev | Line | |
---|
[288126d] | 1 | package ve.gob.cenditel.tibisaymovil; |
---|
| 2 | |
---|
| 3 | import java.io.IOException; |
---|
| 4 | |
---|
| 5 | /** |
---|
| 6 | * Incorrect keystore password. |
---|
| 7 | * |
---|
| 8 | * @author José M. Prieto (jmprieto@emergya.com) |
---|
| 9 | */ |
---|
| 10 | public class IncorrectPasswordException extends KeystoreException { |
---|
| 11 | |
---|
| 12 | private static final long serialVersionUID = -6708216831992460412L; |
---|
| 13 | |
---|
| 14 | public IncorrectPasswordException() {} |
---|
| 15 | |
---|
| 16 | public IncorrectPasswordException(String message) { |
---|
| 17 | |
---|
| 18 | super(message); |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | public IncorrectPasswordException(String message, Throwable cause) { |
---|
| 22 | |
---|
| 23 | super(message, cause); |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | public IncorrectPasswordException(Throwable cause) { |
---|
| 27 | |
---|
| 28 | super(cause); |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | public static boolean checkException(Exception e) { |
---|
| 32 | |
---|
| 33 | if (e.getClass().equals(IOException.class) && e.getMessage() != null |
---|
| 34 | && e.getMessage().contains("wrong password")) { |
---|
| 35 | return true; |
---|
| 36 | } |
---|
| 37 | return false; |
---|
| 38 | } |
---|
| 39 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.