Skip to content

Commit 8843c41

Browse files
authored
feat(encryption): allow subclasses to call JWS* and JWE* creators
1 parent a151b23 commit 8843c41

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/com/hyperwallet/clientsdk/util/HyperwalletEncryption.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ private void checkKeySetLocationIsFile(String keySetLocation) {
238238
}
239239
}
240240

241-
private JWSSigner getJWSSigner(JWK jwk) {
241+
protected JWSSigner getJWSSigner(JWK jwk) {
242242
try {
243243
KeyType kty = jwk.getKeyType();
244244
if (kty.equals(KeyType.RSA)) {
@@ -253,7 +253,7 @@ private JWSSigner getJWSSigner(JWK jwk) {
253253
}
254254
}
255255

256-
private JWEEncrypter getJWEEncrypter(JWK jwk) {
256+
protected JWEEncrypter getJWEEncrypter(JWK jwk) {
257257
try {
258258
KeyType kty = jwk.getKeyType();
259259
if (kty.equals(KeyType.RSA)) {
@@ -268,7 +268,7 @@ private JWEEncrypter getJWEEncrypter(JWK jwk) {
268268
}
269269
}
270270

271-
private JWSVerifier getJWSVerifier(JWK jwk) {
271+
protected JWSVerifier getJWSVerifier(JWK jwk) {
272272
try {
273273
KeyType kty = jwk.getKeyType();
274274
if (kty.equals(KeyType.RSA)) {
@@ -283,7 +283,7 @@ private JWSVerifier getJWSVerifier(JWK jwk) {
283283
}
284284
}
285285

286-
private JWEDecrypter getJWEDecrypter(JWK jwk) {
286+
protected JWEDecrypter getJWEDecrypter(JWK jwk) {
287287
try {
288288
KeyType kty = jwk.getKeyType();
289289
if (kty.equals(KeyType.RSA)) {

0 commit comments

Comments
 (0)