Skip to content

Commit

Permalink
fix: Fix upstream API call
Browse files Browse the repository at this point in the history
  • Loading branch information
peacekeeper committed Oct 22, 2023
1 parent 449de1e commit 22d8d0f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/main/java/com/danubetech/didcomm/JwtObject.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.erdtman.jcs.JsonCanonicalizer;

import java.io.IOException;
import java.security.KeyPair;
import java.security.interfaces.RSAPrivateKey;
import java.security.interfaces.RSAPublicKey;
import java.util.Map;
Expand Down Expand Up @@ -61,11 +62,11 @@ public String sign_RSA_PS256(ByteSigner signer) throws JOSEException {
return this.sign_RSA_PS256(signer, null, false);
}

public String sign_RSA_PS256(RSAPrivateKey privateKey, String kid, boolean canonicalize) throws JOSEException {
public String sign_RSA_PS256(KeyPair privateKey, String kid, boolean canonicalize) throws JOSEException {
return this.sign_RSA_PS256(new RSA_PS256_PrivateKeySigner(privateKey), kid, canonicalize);
}

public String sign_RSA_PS256(RSAPrivateKey privateKey) throws JOSEException {
public String sign_RSA_PS256(KeyPair privateKey) throws JOSEException {
return this.sign_RSA_PS256(privateKey, null, false);
}

Expand All @@ -85,11 +86,11 @@ public String sign_RSA_RS256(ByteSigner signer) throws JOSEException {
return this.sign_RSA_RS256(signer, null, false);
}

public String sign_RSA_RS256(RSAPrivateKey privateKey, String kid, boolean canonicalize) throws JOSEException {
public String sign_RSA_RS256(KeyPair privateKey, String kid, boolean canonicalize) throws JOSEException {
return this.sign_RSA_RS256(new RSA_RS256_PrivateKeySigner(privateKey), kid, canonicalize);
}

public String sign_RSA_RS256(RSAPrivateKey privateKey) throws JOSEException {
public String sign_RSA_RS256(KeyPair privateKey) throws JOSEException {
return this.sign_RSA_RS256(privateKey, null, false);
}

Expand Down

0 comments on commit 22d8d0f

Please sign in to comment.