/** @return the pkcs11File */ public File getPkcs11File() { if (pkcs11File == null) { final String path = userPreferencesDAO.getPKCS11LibraryPath(); if (DSSUtils.isNotEmpty(path)) { pkcs11File = new File(path); } } return pkcs11File; }
/** @param pkcs12File the pkcs12File to set */ public void setPkcs12File(final File pkcs12File) { if (pkcs12File != null) { userPreferencesDAO.setPKCS11LibraryPath(pkcs12File.getAbsolutePath()); } this.pkcs12File = pkcs12File; }
/** @param signatureTokenType the signatureTokenType to set */ public void setSignatureTokenType(final SignatureTokenType signatureTokenType) { if (signatureTokenType != null) { userPreferencesDAO.setSignatureTokenType(signatureTokenType); } this.signatureTokenType = signatureTokenType; }
/** @return the signatureTokenType */ public SignatureTokenType getSignatureTokenType() { if (signatureTokenType == null) { signatureTokenType = userPreferencesDAO.getSignatureTokenType(); } return signatureTokenType; }