I have simple method getSigner which return new Signer (XadesSigner object). The same method works on simple console java application but in Android throws XadesProfileResolutiionException. Anyone help me?
private XadesSigner getSigner(String pfxPath, String password) throws SigningKeyException {
try {
KeyingDataProvider keyingProvider = getKeyingDataProvider(pfxPath, password);
XadesSigningProfile p = new XadesBesSigningProfile(keyingProvider);
return p.newSigner();
} catch (KeyStoreException ex) {
throw new SigningKeyException("Keystore Problem", ex);
} catch (SigningCertChainException ex) {
throw new SigningKeyException("Signer Cert Chain Problem", ex);
} catch (UnexpectedJCAException ex) {
throw new SigningKeyException("JCA Problem", ex);
} catch (XadesProfileResolutionException ex) {
throw new SigningKeyException("XadesProfileResolutionException Problem", ex);
}
}