Skip to content

Commit 642ea20

Browse files
authored
Merge pull request #63 from danubetech/fix/header-validation
Header validation issue fixed
2 parents 0d57db7 + b41d650 commit 642ea20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/com/danubetech/verifiablecredentials/jwt/JwtObject.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public JwtObject(JWTClaimsSet payload, JWSObject jwsObject, String compactSerial
5050

5151
private String sign(JWSSigner jwsSigner, JWSAlgorithm alg, String kid, boolean canonicalize) throws JOSEException {
5252

53-
if(this.header == null || this.header.getKeyID() == null || this.header.getAlgorithm() == null){
53+
if(this.header == null || this.header.getAlgorithm() == null){
5454
JWSHeader.Builder jwsHeaderBuilder = new JWSHeader.Builder(alg);
5555
jwsHeaderBuilder.type(JOSEObjectType.JWT);
5656
if (kid != null) jwsHeaderBuilder.keyID(kid);

0 commit comments

Comments
 (0)