Search in sources :

Example 1 with MSKeyStoreLoader

use of org.demoiselle.signer.core.keystore.loader.implementation.MSKeyStoreLoader in project signer by demoiselle.

the class CAdESTimeStampSignerTest method getKeyStoreOnWindows.

/**
 * Keytore a partir de MSCAPI
 */
private KeyStore getKeyStoreOnWindows() {
    try {
        MSKeyStoreLoader msKeyStoreLoader = new MSKeyStoreLoader();
        KeyStore ks = msKeyStoreLoader.getKeyStore();
        return ks;
    } catch (Exception e1) {
        e1.printStackTrace();
        return null;
    }
}
Also used : KeyStore(java.security.KeyStore) IOException(java.io.IOException) KeyStoreException(java.security.KeyStoreException) MSKeyStoreLoader(org.demoiselle.signer.core.keystore.loader.implementation.MSKeyStoreLoader)

Example 2 with MSKeyStoreLoader

use of org.demoiselle.signer.core.keystore.loader.implementation.MSKeyStoreLoader in project signer by demoiselle.

the class CAdESSignerTest method getKeyStoreOnWindows.

/**
 * Keytore a partir de MSCAPI
 */
private KeyStore getKeyStoreOnWindows() {
    try {
        MSKeyStoreLoader msKeyStoreLoader = new MSKeyStoreLoader();
        KeyStore ks = msKeyStoreLoader.getKeyStore();
        return ks;
    } catch (Exception e1) {
        e1.printStackTrace();
        return null;
    }
}
Also used : KeyStore(java.security.KeyStore) KeyStoreException(java.security.KeyStoreException) UnrecoverableKeyException(java.security.UnrecoverableKeyException) IOException(java.io.IOException) NoSuchAlgorithmException(java.security.NoSuchAlgorithmException) MSKeyStoreLoader(org.demoiselle.signer.core.keystore.loader.implementation.MSKeyStoreLoader)

Aggregations

IOException (java.io.IOException)2 KeyStore (java.security.KeyStore)2 KeyStoreException (java.security.KeyStoreException)2 MSKeyStoreLoader (org.demoiselle.signer.core.keystore.loader.implementation.MSKeyStoreLoader)2 NoSuchAlgorithmException (java.security.NoSuchAlgorithmException)1 UnrecoverableKeyException (java.security.UnrecoverableKeyException)1