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