Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit 3159738

Browse files
committed
remove unused vars
1 parent ac137e0 commit 3159738

File tree

6 files changed

+70
-107
lines changed

6 files changed

+70
-107
lines changed

buildtokenproperties.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ AUTH0_NEW_ID=$(eval "echo \$${ENV}_AUTH0_NEW_ID")
1515
AUTH0_NEW_ID_SECRET=$(eval "echo \$${ENV}_AUTH0_NEW_ID_SECRET")
1616
AUTH0_NEW_NONINTERACTIVE_ID=$(eval "echo \$${ENV}_AUTH0_NEW_NONINTERACTIVE_ID")
1717
AUTH0_NEW_NONINTERACTIVE_ID_SECRET=$(eval "echo \$${ENV}_AUTH0_NEW_NONINTERACTIVE_ID_SECRET")
18-
DICEAUTH_DICE_URL=$(eval "echo \$${ENV}_DICEAUTH_DICE_URL")
1918
DICEAUTH_DICE_API_URL=$(eval "echo \$${ENV}_DICEAUTH_DICE_API_URL")
20-
DICEAUTH_DICE_VERIFIER=$(eval "echo \$${ENV}_DICEAUTH_DICE_VERIFIER")
2119
DICEAUTH_DICE_API_KEY=$(eval "echo \$${ENV}_DICEAUTH_DICE_API_KEY")
2220
DICEAUTH_CREDDEFID=$(eval "echo \$${ENV}_DICEAUTH_CREDDEFID")
2321
DICEAUTH_OTP_DURATION=$(eval "echo \$${ENV}_DICEAUTH_OTP_DURATION")
@@ -90,9 +88,7 @@ perl -pi -e "s/\{\{AUTH0_NEW_ID\}\}/$AUTH0_NEW_ID/g" $CONFFILENAME
9088
perl -pi -e "s/\{\{AUTH0_NEW_ID_SECRET\}\}/$AUTH0_NEW_ID_SECRET/g" $CONFFILENAME
9189
perl -pi -e "s/\{\{AUTH0_NEW_NONINTERACTIVE_ID\}\}/$AUTH0_NEW_NONINTERACTIVE_ID/g" $CONFFILENAME
9290
perl -pi -e "s/\{\{AUTH0_NEW_NONINTERACTIVE_ID_SECRET\}\}/$AUTH0_NEW_NONINTERACTIVE_ID_SECRET/g" $CONFFILENAME
93-
perl -pi -e "s|\{\{DICEAUTH_DICE_URL\}\}|$DICEAUTH_DICE_URL|g" $CONFFILENAME
9491
perl -pi -e "s|\{\{DICEAUTH_DICE_API_URL\}\}|$DICEAUTH_DICE_API_URL|g" $CONFFILENAME
95-
perl -pi -e "s|\{\{DICEAUTH_DICE_VERIFIER\}\}|$DICEAUTH_DICE_VERIFIER|g" $CONFFILENAME
9692
perl -pi -e "s|\{\{DICEAUTH_DICE_API_KEY\}\}|$DICEAUTH_DICE_API_KEY|g" $CONFFILENAME
9793
perl -pi -e "s/\{\{DICEAUTH_CREDDEFID\}\}/$DICEAUTH_CREDDEFID/g" $CONFFILENAME
9894
perl -pi -e "s/\{\{DICEAUTH_OTP_DURATION\}\}/$DICEAUTH_OTP_DURATION/g" $CONFFILENAME
Lines changed: 70 additions & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,70 @@
1-
package com.appirio.tech.core.service.identity.util.auth;
2-
3-
import javax.validation.constraints.NotNull;
4-
5-
public class DICEAuth {
6-
7-
@NotNull
8-
private String diceUrl;
9-
10-
@NotNull
11-
private String diceApiUrl;
12-
13-
@NotNull
14-
private String diceVerifier;
15-
16-
@NotNull
17-
private String diceApiKey;
18-
19-
@NotNull
20-
private String credDefId;
21-
22-
@NotNull
23-
private Integer otpDuration;
24-
25-
private String credPreview = "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/issue-credential/1.0/credential-preview";
26-
27-
public DICEAuth() {
28-
}
29-
30-
public DICEAuth(String diceUrl, String diceApiUrl, String diceVerifier, String diceApiKey, String credDefId,
31-
Integer otpDuration) {
32-
this.diceUrl = diceUrl;
33-
this.diceApiUrl = diceApiUrl;
34-
this.diceVerifier = diceVerifier;
35-
this.diceApiKey = diceApiKey;
36-
this.credDefId = credDefId;
37-
this.otpDuration = otpDuration;
38-
}
39-
40-
public String getDiceUrl() {
41-
return diceUrl;
42-
}
43-
44-
public void setDiceUrl(String diceUrl) {
45-
this.diceUrl = diceUrl;
46-
}
47-
48-
public String getDiceApiUrl() {
49-
return diceApiUrl;
50-
}
51-
52-
public void setDiceApiUrl(String diceApiUrl) {
53-
this.diceApiUrl = diceApiUrl;
54-
}
55-
56-
public String getDiceVerifier() {
57-
return diceVerifier;
58-
}
59-
60-
public void setDiceVerifier(String diceVerifier) {
61-
this.diceVerifier = diceVerifier;
62-
}
63-
64-
public String getDiceApiKey() {
65-
return diceApiKey;
66-
}
67-
68-
public void setDiceApiKey(String diceApiKey) {
69-
this.diceApiKey = diceApiKey;
70-
}
71-
72-
public String getCredDefId() {
73-
return credDefId;
74-
}
75-
76-
public void setCredDefId(String credDefId) {
77-
this.credDefId = credDefId;
78-
}
79-
80-
public Integer getOtpDuration() {
81-
return otpDuration;
82-
}
83-
84-
public void setOtpDuration(Integer otpDuration) {
85-
this.otpDuration = otpDuration;
86-
}
87-
88-
public String getCredPreview() {
89-
return credPreview;
90-
}
91-
92-
public void setCredPreview(String credPreview) {
93-
this.credPreview = credPreview;
94-
}
95-
}
1+
package com.appirio.tech.core.service.identity.util.auth;
2+
3+
import javax.validation.constraints.NotNull;
4+
5+
public class DICEAuth {
6+
7+
@NotNull
8+
private String diceApiUrl;
9+
10+
@NotNull
11+
private String diceApiKey;
12+
13+
@NotNull
14+
private String credDefId;
15+
16+
@NotNull
17+
private Integer otpDuration;
18+
19+
private String credPreview = "did:sov:BzCbsNYhMrjHiqZDTUASHg;spec/issue-credential/1.0/credential-preview";
20+
21+
public DICEAuth() {
22+
}
23+
24+
public DICEAuth(String diceApiUrl, String diceApiKey, String credDefId, Integer otpDuration) {
25+
this.diceApiUrl = diceApiUrl;
26+
this.diceApiKey = diceApiKey;
27+
this.credDefId = credDefId;
28+
this.otpDuration = otpDuration;
29+
}
30+
31+
public String getDiceApiUrl() {
32+
return diceApiUrl;
33+
}
34+
35+
public void setDiceApiUrl(String diceApiUrl) {
36+
this.diceApiUrl = diceApiUrl;
37+
}
38+
39+
public String getDiceApiKey() {
40+
return diceApiKey;
41+
}
42+
43+
public void setDiceApiKey(String diceApiKey) {
44+
this.diceApiKey = diceApiKey;
45+
}
46+
47+
public String getCredDefId() {
48+
return credDefId;
49+
}
50+
51+
public void setCredDefId(String credDefId) {
52+
this.credDefId = credDefId;
53+
}
54+
55+
public Integer getOtpDuration() {
56+
return otpDuration;
57+
}
58+
59+
public void setOtpDuration(Integer otpDuration) {
60+
this.otpDuration = otpDuration;
61+
}
62+
63+
public String getCredPreview() {
64+
return credPreview;
65+
}
66+
67+
public void setCredPreview(String credPreview) {
68+
this.credPreview = credPreview;
69+
}
70+
}

src/main/resources/config.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,7 @@ auth0New:
9494
nonInteractiveClientSecret: @auth0.new.nonInteractive.clientSecret@
9595

9696
diceAuth:
97-
diceUrl: @diceAuth.diceUrl@
9897
diceApiUrl: @diceAuth.diceApiUrl@
99-
diceVerifier: @diceAuth.diceVerifier@
10098
diceApiKey: @diceAuth.diceApiKey@
10199
credDefId: @diceAuth.credDefId@
102100
otpDuration: @diceAuth.otpDuration@

src/main/resources/config.yml.localdev

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,7 @@ auth0New:
8686
nonInteractiveClientSecret: AUTH0-NI-CLIENT-SECRET
8787

8888
diceAuth:
89-
diceUrl: dummy
9089
diceApiUrl: dummy
91-
diceVerifier: dummy
9290
diceApiKey: dummy
9391
credDefId: dummy
9492
otpDuration: 10

token.properties.localdev

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131
@auth0.new.clientSecret@=
3232
@auth0.new.domain@=dummy.auth0.com
3333

34-
@diceAuth.diceUrl@=dummy
3534
@diceAuth.diceApiUrl@=dummy
36-
@diceAuth.diceVerifier@=dummy
3735
@diceAuth.diceApiKey@=dummy
3836
@diceAuth.credDefId@=dummy
3937
@diceAuth.otpDuration@=10

token.properties.template

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,7 @@
5151
@auth0.new.nonInteractive.clientSecret@={{AUTH0_NEW_NONINTERACTIVE_ID_SECRET}}
5252
@auth0.new.domain@={{AUTH0_NEW_DOMAIN}}
5353

54-
@diceAuth.diceUrl@={{DICEAUTH_DICE_URL}}
5554
@diceAuth.diceApiUrl@={{DICEAUTH_DICE_API_URL}}
56-
@diceAuth.diceVerifier@={{DICEAUTH_DICE_VERIFIER}}
5755
@diceAuth.diceApiKey@={{DICEAUTH_DICE_API_KEY}}
5856
@diceAuth.credDefId@={{DICEAUTH_CREDDEFID}}
5957
@diceAuth.otpDuration@={{DICEAUTH_OTP_DURATION}}

0 commit comments

Comments
 (0)