-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extract out IdGeneratorBase and Add NonceGenerator
- Loading branch information
Showing
17 changed files
with
475 additions
and
219 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
"iterations" : 4, | ||
"threads" : 1, | ||
"forks" : 3, | ||
"mean_ops" : 745876.9926227567 | ||
"mean_ops" : 823635.7718335792 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,5 +4,5 @@ | |
"iterations" : 4, | ||
"threads" : 1, | ||
"forks" : 3, | ||
"mean_ops" : 578009.6941965051 | ||
"mean_ops" : 655010.8023043653 | ||
} |
12 changes: 12 additions & 0 deletions
12
...iscovery-bundle/src/main/java/io/appform/ranger/discovery/bundle/id/GenerationResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package io.appform.ranger.discovery.bundle.id; | ||
|
||
import lombok.Getter; | ||
import lombok.Value; | ||
|
||
@Getter | ||
@Value | ||
public class GenerationResult { | ||
NonceInfo nonceInfo; | ||
IdValidationState state; | ||
Domain domain; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
...scovery-bundle/src/main/java/io/appform/ranger/discovery/bundle/id/IdValidationState.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package io.appform.ranger.discovery.bundle.id; | ||
|
||
public enum IdValidationState { | ||
VALID, | ||
INVALID_RETRYABLE, | ||
INVALID_NON_RETRYABLE | ||
} |
15 changes: 15 additions & 0 deletions
15
ranger-discovery-bundle/src/main/java/io/appform/ranger/discovery/bundle/id/NonceInfo.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package io.appform.ranger.discovery.bundle.id; | ||
|
||
import lombok.Value; | ||
|
||
@Value | ||
public class NonceInfo { | ||
|
||
int exponent; | ||
long time; | ||
|
||
public NonceInfo(int exponent, long time) { | ||
this.exponent = exponent; | ||
this.time = time; | ||
} | ||
} |
Oops, something went wrong.