| | |
| | | pwd); |
| | | trustManager.addCertificate(SELF_SIGNED_CERT_ALIAS, |
| | | new File(getTemporaryCertificatePath())); |
| | | createFile(getKeystorePinPath(), pwd); |
| | | createProtectedFile(getKeystorePinPath(), pwd); |
| | | f = new File(getTemporaryCertificatePath()); |
| | | f.delete(); |
| | | |
| | |
| | | sec.getKeystorePassword()); |
| | | trustManager.addCertificate(sec.getAliasToUse(), |
| | | new File(getTemporaryCertificatePath())); |
| | | createFile(getKeystorePinPath(), sec.getKeystorePassword()); |
| | | createProtectedFile(getKeystorePinPath(), sec.getKeystorePassword()); |
| | | f = new File(getTemporaryCertificatePath()); |
| | | f.delete(); |
| | | break; |
| | |
| | | sec.getKeystorePassword()); |
| | | trustManager.addCertificate(sec.getAliasToUse(), |
| | | new File(getTemporaryCertificatePath())); |
| | | createFile(getKeystorePinPath(), sec.getKeystorePassword()); |
| | | createProtectedFile(getKeystorePinPath(), sec.getKeystorePassword()); |
| | | f = new File(getTemporaryCertificatePath()); |
| | | f.delete(); |
| | | break; |
| | |
| | | sec.getKeystorePassword()); |
| | | trustManager.addCertificate(sec.getAliasToUse(), |
| | | new File(getTemporaryCertificatePath())); |
| | | createFile(getKeystorePinPath(), sec.getKeystorePassword()); |
| | | createProtectedFile(getKeystorePinPath(), sec.getKeystorePassword()); |
| | | f = new File(getTemporaryCertificatePath()); |
| | | f.delete(); |
| | | break; |
| | |
| | | sec.getKeystorePassword()); |
| | | trustManager.addCertificate(sec.getAliasToUse(), |
| | | new File(getTemporaryCertificatePath())); |
| | | createFile(getKeystorePinPath(), sec.getKeystorePassword()); |
| | | createProtectedFile(getKeystorePinPath(), sec.getKeystorePassword()); |
| | | break; |
| | | default: |
| | | throw new IllegalStateException("Unknown certificate type: "+certType); |