@@ -82,6 +82,7 @@ public class AccessGrantClient {
8282 private static final String TYPE = "type" ;
8383 private static final String APPLICATION_JSON = "application/json" ;
8484 private static final String CONTENT_TYPE = "Content-Type" ;
85+ private static final String CREDENTIAL_SUBJECT = "credentialSubject" ;
8586 private static final String IS_PROVIDED_TO_PERSON = "isProvidedToPerson" ;
8687 private static final String FOR_PERSONAL_DATA = "forPersonalData" ;
8788 private static final String HAS_STATUS = "hasStatus" ;
@@ -413,7 +414,7 @@ static void buildQuery(final List<Map<String, Object>> queries, final URI issuer
413414 } else if (isAccessRequest (type )) {
414415 subject .put ("hasConsent" , consent );
415416 }
416- credential .put ("credentialSubject" , subject );
417+ credential .put (CREDENTIAL_SUBJECT , subject );
417418 }
418419
419420 final Map <String , Object > data = new HashMap <>();
@@ -469,7 +470,7 @@ static Map<String, Object> buildAccessGrantv1(final URI agent, final Set<URI> re
469470 final Map <String , Object > credential = new HashMap <>();
470471 credential .put (CONTEXT , Arrays .asList (VC_CONTEXT_URI , INRUPT_CONTEXT_URI ));
471472 credential .put ("expirationDate" , expiration );
472- credential .put ("credentialSubject" , subject );
473+ credential .put (CREDENTIAL_SUBJECT , subject );
473474
474475 final Map <String , Object > data = new HashMap <>();
475476 data .put ("credential" , credential );
@@ -493,7 +494,7 @@ static Map<String, Object> buildAccessRequestv1(final URI agent, final Set<URI>
493494 final Map <String , Object > credential = new HashMap <>();
494495 credential .put (CONTEXT , Arrays .asList (VC_CONTEXT_URI , INRUPT_CONTEXT_URI ));
495496 credential .put ("expirationDate" , expiration );
496- credential .put ("credentialSubject" , subject );
497+ credential .put (CREDENTIAL_SUBJECT , subject );
497498
498499 final Map <String , Object > data = new HashMap <>();
499500 data .put ("credential" , credential );
0 commit comments