Skip to content

Commit b41d650

Browse files
committed
fix: Header vlaidation issue fixed
1 parent 0d57db7 commit b41d650

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)