`.
+
+By default the logger comes with two appenders, **LogToConsole** and **RollingFile**.
+
The sensitive fields that are masked during logging are:
* Card Number
* Card Code
@@ -156,7 +166,7 @@ The sensitive fields that are masked during logging are:
* Account Number
* Name on Account
-There is also a list of regular expressions which the sensitive logger uses to mask credit card numbers while logging.
+There is also a list of regular expressions which the sensitive logger uses to mask credit card numbers while logging.
More information on the regular expressions used during sensitive data logging [can be found here](https://github.com/AuthorizeNet/sdk-java/blob/master/resources/AuthorizedNetSensitiveTagsConfig.json).
diff --git a/pom.xml b/pom.xml
index 75e17b62..91f70ccb 100644
--- a/pom.xml
+++ b/pom.xml
@@ -9,7 +9,7 @@
net.authorize
anet-java-sdk
jar
- 2.0.7-SNAPSHOT
+ 3.0.1-SNAPSHOT
Authorize.Net Java SDK
Authorize.Net SDK includes standard payments, recurring billing, and customer profiles.
http://developer.authorize.net
diff --git a/src/main/java/net/authorize/api/controller/base/ApiOperationBase.java b/src/main/java/net/authorize/api/controller/base/ApiOperationBase.java
index 52e3d7cc..c59b2c55 100644
--- a/src/main/java/net/authorize/api/controller/base/ApiOperationBase.java
+++ b/src/main/java/net/authorize/api/controller/base/ApiOperationBase.java
@@ -121,12 +121,11 @@ public S executeWithApiResponse(Environment environment) {
return this.getApiResponse();
}
- final String nullEnvironmentErrorMessage = "Environment not set. Set environment using setter or use overloaded method to pass appropriate environment";
public void execute() {
if ( null == ApiOperationBase.getEnvironment())
{
- throw new InvalidParameterException(nullEnvironmentErrorMessage);
+ throw new InvalidParameterException(Constants.NULL_ENVIRONMENT_ERROR_MESSAGE);
}
else
{
@@ -139,7 +138,7 @@ public void execute(Environment environment) {
logger.debug(String.format("Executing Request:'%s'", this.getApiRequest()));
- if ( null == environment) throw new InvalidParameterException(nullEnvironmentErrorMessage);
+ if ( null == environment) throw new InvalidParameterException(Constants.NULL_ENVIRONMENT_ERROR_MESSAGE);
ANetApiResponse httpApiResponse = HttpUtility.postData(environment, this.getApiRequest(), this.responseClass);
if ( null != httpApiResponse)
diff --git a/src/main/java/net/authorize/util/Constants.java b/src/main/java/net/authorize/util/Constants.java
index 2a2b42c5..500f920c 100644
--- a/src/main/java/net/authorize/util/Constants.java
+++ b/src/main/java/net/authorize/util/Constants.java
@@ -36,4 +36,5 @@ public final class Constants {
public static final int HTTP_READ_TIME_OUT_DEFAULT_VALUE = 30000;
public static final String CLIENT_ID = "sdk-java-2.0.3";
+ public static final String NULL_ENVIRONMENT_ERROR_MESSAGE = "Environment not set. Set environment using setter or use overloaded method to pass appropriate environment";
}
diff --git a/src/main/java/net/authorize/util/HttpClient.java b/src/main/java/net/authorize/util/HttpClient.java
index d864dc36..f1e04cdc 100644
--- a/src/main/java/net/authorize/util/HttpClient.java
+++ b/src/main/java/net/authorize/util/HttpClient.java
@@ -185,7 +185,7 @@ static CloseableHttpClient getHttpsClient() throws Exception {
proxySet = true;
} else {
- LogHelper.warn(logger, "Defaulting to non-proxy environment");
+ if( UseProxy ) { LogHelper.warn(logger, "Defaulting to non-proxy environment");}
httpClient = HttpClientBuilder
.create()
pFad - Phonifier reborn
Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies:
Alternative Proxy
pFad Proxy
pFad v3 Proxy
pFad v4 Proxy