throw new ValidationException("invalid_client_metadata", "Software statement can't include another software statement", HttpStatus.BAD_REQUEST); case CLAIMS_REDIRECT_URIS: newClient.setClaimsRedirectUris(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case CLIENT_SECRET_EXPIRES_AT: throw new ValidationException("invalid_client_metadata", "Software statement can't include a client registration access token", HttpStatus.BAD_REQUEST); case REQUEST_URIS: newClient.setRequestUris(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case POST_LOGOUT_REDIRECT_URIS: newClient.setPostLogoutRedirectUris(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case INITIATE_LOGIN_URI: break; case DEFAULT_ACR_VALUES: newClient.setDefaultACRvalues(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case REQUIRE_AUTH_TIME: break; case RESPONSE_TYPES: newClient.setResponseTypes(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case GRANT_TYPES: newClient.setGrantTypes(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case SCOPE:
throw new ValidationException("invalid_client_metadata", "Software statement can't include another software statement", HttpStatus.BAD_REQUEST); case CLAIMS_REDIRECT_URIS: newClient.setClaimsRedirectUris(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case CLIENT_SECRET_EXPIRES_AT: throw new ValidationException("invalid_client_metadata", "Software statement can't include a client registration access token", HttpStatus.BAD_REQUEST); case REQUEST_URIS: newClient.setRequestUris(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case POST_LOGOUT_REDIRECT_URIS: newClient.setPostLogoutRedirectUris(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case INITIATE_LOGIN_URI: break; case DEFAULT_ACR_VALUES: newClient.setDefaultACRvalues(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case REQUIRE_AUTH_TIME: break; case RESPONSE_TYPES: newClient.setResponseTypes(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case GRANT_TYPES: newClient.setGrantTypes(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case SCOPE:
/** * Gets the audience ({@code aud}) claim. * * @return The audience claim, empty list if not specified. */ public List<String> getAudience() { Object audValue = getClaim(AUDIENCE_CLAIM); if (audValue instanceof String) { // Special case return Collections.singletonList((String)audValue); } List<String> aud; try { aud = getStringListClaim(AUDIENCE_CLAIM); } catch (ParseException e) { return Collections.emptyList(); } return aud != null ? Collections.unmodifiableList(aud) : Collections.<String>emptyList(); }
throw new ValidationException("invalid_client_metadata", "Software statement can't include another software statement", HttpStatus.BAD_REQUEST); case CLAIMS_REDIRECT_URIS: newClient.setClaimsRedirectUris(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case CLIENT_SECRET_EXPIRES_AT: throw new ValidationException("invalid_client_metadata", "Software statement can't include a client registration access token", HttpStatus.BAD_REQUEST); case REQUEST_URIS: newClient.setRequestUris(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case POST_LOGOUT_REDIRECT_URIS: newClient.setPostLogoutRedirectUris(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case INITIATE_LOGIN_URI: break; case DEFAULT_ACR_VALUES: newClient.setDefaultACRvalues(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case REQUIRE_AUTH_TIME: break; case RESPONSE_TYPES: newClient.setResponseTypes(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case GRANT_TYPES: newClient.setGrantTypes(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case SCOPE:
throw new ValidationException("invalid_client_metadata", "Software statement can't include another software statement", HttpStatus.BAD_REQUEST); case CLAIMS_REDIRECT_URIS: newClient.setClaimsRedirectUris(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case CLIENT_SECRET_EXPIRES_AT: throw new ValidationException("invalid_client_metadata", "Software statement can't include a client registration access token", HttpStatus.BAD_REQUEST); case REQUEST_URIS: newClient.setRequestUris(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case POST_LOGOUT_REDIRECT_URIS: newClient.setPostLogoutRedirectUris(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case INITIATE_LOGIN_URI: break; case DEFAULT_ACR_VALUES: newClient.setDefaultACRvalues(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case REQUIRE_AUTH_TIME: break; case RESPONSE_TYPES: newClient.setResponseTypes(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case GRANT_TYPES: newClient.setGrantTypes(Sets.newHashSet(claimSet.getStringListClaim(claim))); break; case SCOPE: