Skip to content

Commit 97344ea

Browse files
authored
Merge pull request #41 from gnongsie/master
Adding Flex Token Verification logic
2 parents aa9d1cf + 094d3a7 commit 97344ea

File tree

8 files changed

+910
-15
lines changed

8 files changed

+910
-15
lines changed

generator/cybersource_java_sdk_gen.bat

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
@echo off
22

3-
rd /s /q ..\src
3+
rd /s /q ..\src\main\java\Api
4+
rd /s /q ..\src\main\java\Invokers
5+
rd /s /q ..\src\main\java\Model
6+
rd /s /q ..\src\test
47
rd /s /q ..\target
58
rd /s /q ..\docs
69

pom.xml

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -266,18 +266,11 @@
266266
<artifactId>AuthenticationSdk</artifactId>
267267
<version>0.0.8</version>
268268
</dependency>
269-
270-
<!-- Added dependencies -->
271-
<dependency>
272-
<groupId>com.cybersource</groupId>
273-
<artifactId>flex-server-sdk</artifactId>
274-
<version>${flex-version}</version>
275-
</dependency>
276-
<dependency>
277-
<groupId>com.fasterxml.jackson.core</groupId>
278-
<artifactId>jackson-databind</artifactId>
279-
<version>${jackson-version}</version>
280-
</dependency>
269+
<dependency>
270+
<groupId>com.fasterxml.jackson.core</groupId>
271+
<artifactId>jackson-databind</artifactId>
272+
<version>${jackson-version}</version>
273+
</dependency>
281274
</dependencies>
282275

283276
<properties>
@@ -291,8 +284,7 @@
291284
<jodatime-version>2.9.9</jodatime-version>
292285
<maven-plugin-version>1.0.0</maven-plugin-version>
293286
<junit-version>4.12</junit-version>
294-
<flex-version>0.3.1</flex-version>
295-
<jackson-version>2.9.10.1</jackson-version>
287+
<jackson-version>2.9.10.1</jackson-version>
296288
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
297289
</properties>
298290
</project>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
package utilities.flex.exception;
2+
3+
public class FlexEncodingException extends FlexException {
4+
5+
public FlexEncodingException(String msg) {
6+
super(msg);
7+
}
8+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package utilities.flex.exception;
2+
3+
public class FlexException extends Exception {
4+
5+
public FlexException(final String msg) {
6+
super(msg);
7+
}
8+
9+
public FlexException(final Throwable t) {
10+
super(t);
11+
}
12+
13+
public FlexException(String message, Throwable t) {
14+
super(message, t);
15+
}
16+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
package utilities.flex.exception;
2+
3+
public class FlexSDKInternalException extends FlexException {
4+
5+
public FlexSDKInternalException(String msg) {
6+
super(msg);
7+
}
8+
9+
public FlexSDKInternalException(Throwable t) {
10+
super(t);
11+
}
12+
13+
public FlexSDKInternalException(String message, Throwable t) {
14+
super(message, t);
15+
}
16+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package utilities.flex.exception;
2+
3+
public class FlexSecurityException extends FlexException {
4+
5+
public FlexSecurityException(String msg) {
6+
super(msg);
7+
}
8+
9+
public FlexSecurityException(String msg, Exception e) {
10+
super(msg, e);
11+
}
12+
}

0 commit comments

Comments
 (0)