Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Remove attribute 'encryptionFingerprint' not used in class … #34

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,22 @@

import com.mastercard.developer.interceptors.OkHttpOAuth1Interceptor;
import com.mastercard.developer.utils.AuthenticationUtils;
import java.io.IOException;
import java.security.KeyStoreException;
import java.security.NoSuchAlgorithmException;
import org.openapitools.client.ApiClient;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.io.Resource;

import java.security.PrivateKey;
import java.security.UnrecoverableKeyException;
import java.security.cert.CertificateException;

/**
* Api Client Setup
*/

@Configuration
public class ApiConfiguration {

Expand All @@ -50,9 +54,6 @@ public class ApiConfiguration {
@Value("${mastercard.api.encryption.key-file}")
private Resource encryptionKeyFile;

@Value("${mastercard.api.encryption.fingerprint}")
private String encryptionFingerprint;

public String getConsumerKey() {
return consumerKey;
}
Expand Down Expand Up @@ -87,7 +88,7 @@ public PrivateKey getSigningKey() {
p12File.getFile().getAbsolutePath(),
keyAlias,
String.valueOf(userPasscode));
} catch (Exception e) {
} catch (IOException | KeyStoreException | NoSuchAlgorithmException | UnrecoverableKeyException | CertificateException e) {
throw new IllegalArgumentException(e);
}
}
Expand Down